[llvm] r266441 - lli.cpp: Appease some builders. There might be ownership issues between LLVMContext and ExecutionEngine. Investigating.
NAKAMURA Takumi via llvm-commits
llvm-commits at lists.llvm.org
Fri Apr 15 08:31:29 PDT 2016
Author: chapuni
Date: Fri Apr 15 10:31:28 2016
New Revision: 266441
URL: http://llvm.org/viewvc/llvm-project?rev=266441&view=rev
Log:
lli.cpp: Appease some builders. There might be ownership issues between LLVMContext and ExecutionEngine. Investigating.
Modified:
llvm/trunk/tools/lli/lli.cpp
Modified: llvm/trunk/tools/lli/lli.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/lli/lli.cpp?rev=266441&r1=266440&r2=266441&view=diff
==============================================================================
--- llvm/trunk/tools/lli/lli.cpp (original)
+++ llvm/trunk/tools/lli/lli.cpp Fri Apr 15 10:31:28 2016
@@ -312,6 +312,7 @@ private:
}
};
+static LLVMContext Context;
static ExecutionEngine *EE = nullptr;
static LLIObjectCache *CacheManager = nullptr;
@@ -385,7 +386,6 @@ int main(int argc, char **argv, char * c
sys::PrintStackTraceOnErrorSignal();
PrettyStackTraceProgram X(argc, argv);
- LLVMContext Context;
atexit(do_shutdown); // Call llvm_shutdown() on exit.
// If we have a native target, initialize it to ensure it is linked in and
More information about the llvm-commits
mailing list