Skip to content

Commit 7fa02cc

Browse files
committed
Fix: Apply lhames suggested fix for Clang-REPL crash
1 parent 06132c8 commit 7fa02cc

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

clang/lib/Interpreter/Interpreter.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -725,7 +725,9 @@ llvm::Error Interpreter::LoadDynamicLibrary(const char *name) {
725725

726726
if (auto DLSG = llvm::orc::EPCDynamicLibrarySearchGenerator::Load(
727727
EE->getExecutionSession(), name))
728-
EE->getMainJITDylib().addGenerator(std::move(*DLSG));
728+
// FIXME: Eventually we should put each library in its own JITDylib and
729+
// turn off process symbols by default.
730+
EE->getProcessSymbolsJITDylib()->addGenerator(std::move(*DLSG));
729731
else
730732
return DLSG.takeError();
731733

0 commit comments

Comments
 (0)