Skip to content

Commit 25d556d

Browse files
mizvekovalandefreitas
authored andcommitted
fix: use after free returning string_view bound to local string
1 parent 5aa5691 commit 25d556d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/Support/LegibleNames.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ class LegibleNames::Impl
192192
If the symbolhas no name, then a reserved name based
193193
on the type is returned instead.
194194
*/
195-
std::string_view
195+
std::string
196196
getRawUnqualified(SymbolID const& id)
197197
{
198198
Info const* I = corpus_.find(id);

0 commit comments

Comments
 (0)