summaryrefslogtreecommitdiff
path: root/lib/ExecutionEngine
diff options
context:
space:
mode:
authorMisha Brukman <brukman+llvm@gmail.com>2003-10-17 18:31:59 +0000
committerMisha Brukman <brukman+llvm@gmail.com>2003-10-17 18:31:59 +0000
commit05701573aac26e87a33e8aa58817e4dc5a40050a (patch)
treecf8981d8aeac72f392898dfb50b28fbd8585de5b /lib/ExecutionEngine
parent9b8c2911d9651179a62fea986a7346792a389d92 (diff)
downloadllvm-05701573aac26e87a33e8aa58817e4dc5a40050a.tar.gz
llvm-05701573aac26e87a33e8aa58817e4dc5a40050a.tar.bz2
llvm-05701573aac26e87a33e8aa58817e4dc5a40050a.tar.xz
Don't release the Module, as that invalidates the Module* within the
ModuleProvider, which has bad consequences in lli::callAsMain() which tries to access that same Module*. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9205 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/ExecutionEngine')
-rw-r--r--lib/ExecutionEngine/ExecutionEngine.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/ExecutionEngine/ExecutionEngine.cpp b/lib/ExecutionEngine/ExecutionEngine.cpp
index ceeb857020..d25abfb63f 100644
--- a/lib/ExecutionEngine/ExecutionEngine.cpp
+++ b/lib/ExecutionEngine/ExecutionEngine.cpp
@@ -28,7 +28,7 @@ ExecutionEngine::ExecutionEngine(ModuleProvider *P) :
}
ExecutionEngine::ExecutionEngine(Module *M) : CurMod(*M), MP(0) {
- assert(M && "Module is null?");
+ assert(M && "Module is null?");
}
ExecutionEngine::~ExecutionEngine() {
@@ -51,7 +51,7 @@ ExecutionEngine *ExecutionEngine::create(ModuleProvider *MP,
// If we can't make a JIT, make an interpreter instead.
try {
if (EE == 0)
- EE = Interpreter::create(MP->releaseModule(), TraceMode);
+ EE = Interpreter::create(MP->materializeModule(), TraceMode);
} catch (...) {
EE = 0;
}