[clang] b4c0307 - Fix clang-interpreter build after 2487db1f286222e2501c2fa8e8244eda13f6afc3
Jon Roelofs via cfe-commits
cfe-commits at lists.llvm.org
Thu Aug 5 10:05:58 PDT 2021
Author: Jon Roelofs
Date: 2021-08-05T10:05:36-07:00
New Revision: b4c0307d598004cfd96c770d2a4a84a37c838ba9
URL: https://github.com/llvm/llvm-project/commit/b4c0307d598004cfd96c770d2a4a84a37c838ba9
DIFF: https://github.com/llvm/llvm-project/commit/b4c0307d598004cfd96c770d2a4a84a37c838ba9.diff
LOG: Fix clang-interpreter build after 2487db1f286222e2501c2fa8e8244eda13f6afc3
Added:
Modified:
clang/examples/clang-interpreter/main.cpp
Removed:
################################################################################
diff --git a/clang/examples/clang-interpreter/main.cpp b/clang/examples/clang-interpreter/main.cpp
index 342d42089472c..a2c50167f6b1c 100644
--- a/clang/examples/clang-interpreter/main.cpp
+++ b/clang/examples/clang-interpreter/main.cpp
@@ -66,7 +66,8 @@ class SimpleJIT {
SimpleJIT(
std::unique_ptr<TargetMachine> TM, DataLayout DL,
std::unique_ptr<DynamicLibrarySearchGenerator> ProcessSymbolsGenerator)
- : TM(std::move(TM)), DL(std::move(DL)) {
+ : ES(cantFail(SelfExecutorProcessControl::Create())), TM(std::move(TM)),
+ DL(std::move(DL)) {
llvm::sys::DynamicLibrary::LoadLibraryPermanently(nullptr);
MainJD.addGenerator(std::move(ProcessSymbolsGenerator));
}
More information about the cfe-commits
mailing list