[llvm-commits] CVS: llvm/lib/ExecutionEngine/ExecutionEngine.cpp
Misha Brukman
brukman at cs.uiuc.edu
Fri Oct 17 13:33:01 PDT 2003
Changes in directory llvm/lib/ExecutionEngine:
ExecutionEngine.cpp updated: 1.33 -> 1.34
---
Log message:
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*.
---
Diffs of the changes: (+2 -2)
Index: llvm/lib/ExecutionEngine/ExecutionEngine.cpp
diff -u llvm/lib/ExecutionEngine/ExecutionEngine.cpp:1.33 llvm/lib/ExecutionEngine/ExecutionEngine.cpp:1.34
--- llvm/lib/ExecutionEngine/ExecutionEngine.cpp:1.33 Thu Oct 16 16:18:05 2003
+++ llvm/lib/ExecutionEngine/ExecutionEngine.cpp Fri Oct 17 13:31:59 2003
@@ -28,7 +28,7 @@
}
ExecutionEngine::ExecutionEngine(Module *M) : CurMod(*M), MP(0) {
- assert(M && "Module is null?");
+ assert(M && "Module is null?");
}
ExecutionEngine::~ExecutionEngine() {
@@ -51,7 +51,7 @@
// 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;
}
More information about the llvm-commits
mailing list