Fix clang-interpreter build after 2487db1f286222e2501c2fa8e8244eda13f6afc3
authorJon Roelofs <jonathan_roelofs@apple.com>
Thu, 5 Aug 2021 16:35:02 +0000 (09:35 -0700)
committerJon Roelofs <jonathan_roelofs@apple.com>
Thu, 5 Aug 2021 17:05:36 +0000 (10:05 -0700)
clang/examples/clang-interpreter/main.cpp

index 342d420..a2c5016 100644 (file)
@@ -66,7 +66,8 @@ private:
   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));
   }