We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b8eb7d4 commit c87bfccCopy full SHA for c87bfcc
src/legacy/api/NativeAPI.cpp
@@ -273,9 +273,9 @@ NativeFunction NativeFunction::getOrParse(const std::string& symbol) {
273
result.mFunction = ll::memory::resolveSymbol(symbol.c_str());
274
result.mSymbol = symbol;
275
276
- Demangler demangler;
277
- StringView symbolView{symbol.c_str()};
278
- SymbolNode* AST = demangler.parse(symbolView);
+ Demangler demangler;
+ std::string_view symbolView{symbol};
+ SymbolNode* AST = demangler.parse(symbolView);
279
if (demangler.Error) throw std::runtime_error("failed to demangle symbol");
280
if (AST->kind() != NodeKind::FunctionSymbol) throw std::runtime_error("mangled name is not a function");
281
auto funcAST = static_cast<FunctionSymbolNode*>(AST);
0 commit comments