[llvm-commits] [llvm] r160753 - /llvm/trunk/lib/ExecutionEngine/JIT/JIT.cpp
Chad Rosier
mcrosier at apple.com
Wed Jul 25 12:06:29 PDT 2012
Author: mcrosier
Date: Wed Jul 25 14:06:29 2012
New Revision: 160753
URL: http://llvm.org/viewvc/llvm-project?rev=160753&view=rev
Log:
You cannot call removeModule on a JIT with no modules. Patch by Verena
Beckham <verena at codeplay.com>. Reviewed by Jim Grosbach.
Modified:
llvm/trunk/lib/ExecutionEngine/JIT/JIT.cpp
Modified: llvm/trunk/lib/ExecutionEngine/JIT/JIT.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/ExecutionEngine/JIT/JIT.cpp?rev=160753&r1=160752&r2=160753&view=diff
==============================================================================
--- llvm/trunk/lib/ExecutionEngine/JIT/JIT.cpp (original)
+++ llvm/trunk/lib/ExecutionEngine/JIT/JIT.cpp Wed Jul 25 14:06:29 2012
@@ -361,7 +361,7 @@
MutexGuard locked(lock);
- if (jitstate->getModule() == M) {
+ if (jitstate && jitstate->getModule() == M) {
delete jitstate;
jitstate = 0;
}
More information about the llvm-commits
mailing list