Skip to content

Commit 61ab36a

Browse files
committed
Revert "[Clang-REPL] Fix crash during __run_exit_handlers with dynamic libraries. (#117475)"
This reverts commit 30ad53b as it breaks systems that don't have a systemwide libc++ or libstdc++ installed. It should be rewritten to not invoke the system linker. In the meanwhile, reverting to unblock the bots.
1 parent 9ddcaed commit 61ab36a

File tree

2 files changed

+1
-23
lines changed

2 files changed

+1
-23
lines changed

clang/lib/Interpreter/Interpreter.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -719,9 +719,7 @@ llvm::Error Interpreter::LoadDynamicLibrary(const char *name) {
719719

720720
if (auto DLSG = llvm::orc::DynamicLibrarySearchGenerator::Load(
721721
name, DL.getGlobalPrefix()))
722-
// FIXME: Eventually we should put each library in its own JITDylib and
723-
// turn off process symbols by default.
724-
EE->getProcessSymbolsJITDylib()->addGenerator(std::move(*DLSG));
722+
EE->getMainJITDylib().addGenerator(std::move(*DLSG));
725723
else
726724
return DLSG.takeError();
727725

clang/test/Interpreter/crash.cpp

Lines changed: 0 additions & 20 deletions
This file was deleted.

0 commit comments

Comments
 (0)