We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 560819d commit fa5df84Copy full SHA for fa5df84
1 file changed
lib/Interpreter/Interpreter.cpp
@@ -269,7 +269,7 @@ namespace cling {
269
#endif
270
if (GV) {
271
if (void* Addr = m_Executor->getPointerToGlobalFromJIT(*GV))
272
- m_Executor->addSymbol(Sym.str().c_str(), Addr, true);
+ m_Executor->addSymbol(Sym, Addr, true);
273
else
274
cling::errs() << Sym << " not defined\n";
275
} else
@@ -296,9 +296,9 @@ namespace cling {
296
297
// gCling gets linked to top-most Interpreter.
298
if (!parent())
299
- m_Executor->addSymbol(Name.c_str(), &m_Parenting, true);
+ m_Executor->addSymbol(Name, &m_Parenting, true);
300
301
- m_Executor->addSymbol(Name.c_str(), &m_Parenting[1], true);
+ m_Executor->addSymbol(Name, &m_Parenting[1], true);
302
}
303
} else {
304
cling::errs() << "gCling was not found\n";
0 commit comments