summaryrefslogtreecommitdiffstats
path: root/llvm/lib
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
commite37fb9ddc57bbe0fdb9831d2c3ca5aa0d18df56a (patch)
treec1c32aeedc804963268915b3208711d2f769d3e6 /llvm/lib
parent1a7668a9fd168fadd72dbe5221042a3bc9b9195e (diff)
downloadbcm5719-llvm-e37fb9ddc57bbe0fdb9831d2c3ca5aa0d18df56a.tar.gz
bcm5719-llvm-e37fb9ddc57bbe0fdb9831d2c3ca5aa0d18df56a.zip
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*. llvm-svn: 9205
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/ExecutionEngine/ExecutionEngine.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/ExecutionEngine/ExecutionEngine.cpp b/llvm/lib/ExecutionEngine/ExecutionEngine.cpp
index ceeb857020f..d25abfb63f7 100644
--- a/llvm/lib/ExecutionEngine/ExecutionEngine.cpp
+++ b/llvm/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;
}
OpenPOWER on IntegriCloud