aboutsummaryrefslogtreecommitdiff
path: root/gcc/gcc-rich-location.h
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/gcc-rich-location.h')
-rw-r--r--gcc/gcc-rich-location.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/gcc-rich-location.h b/gcc/gcc-rich-location.h
index 3bee2e8..71f4f3d 100644
--- a/gcc/gcc-rich-location.h
+++ b/gcc/gcc-rich-location.h
@@ -111,7 +111,7 @@ class text_range_label : public range_label
label_text get_text (unsigned /*range_idx*/) const FINAL OVERRIDE
{
- return label_text (const_cast <char *> (m_text), false);
+ return label_text::borrow (m_text);
}
private: