summaryrefslogtreecommitdiffstats
path: root/llvm/lib/ExecutionEngine
diff options
context:
space:
mode:
authorChad Rosier <mcrosier@apple.com>2012-07-25 19:06:29 +0000
committerChad Rosier <mcrosier@apple.com>2012-07-25 19:06:29 +0000
commit13198f8f9f634d8d281147a712d5efefb5824420 (patch)
treefd6523173fb41c2b9bde26cf0084c05ce794c494 /llvm/lib/ExecutionEngine
parentae7581dfd6e78f1e9f9b9661d372ae3418480597 (diff)
downloadbcm5719-llvm-13198f8f9f634d8d281147a712d5efefb5824420.tar.gz
bcm5719-llvm-13198f8f9f634d8d281147a712d5efefb5824420.zip
You cannot call removeModule on a JIT with no modules. Patch by Verena
Beckham <verena@codeplay.com>. Reviewed by Jim Grosbach. llvm-svn: 160753
Diffstat (limited to 'llvm/lib/ExecutionEngine')
-rw-r--r--llvm/lib/ExecutionEngine/JIT/JIT.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/ExecutionEngine/JIT/JIT.cpp b/llvm/lib/ExecutionEngine/JIT/JIT.cpp
index a942299f3bb..a54ee3b87bc 100644
--- a/llvm/lib/ExecutionEngine/JIT/JIT.cpp
+++ b/llvm/lib/ExecutionEngine/JIT/JIT.cpp
@@ -361,7 +361,7 @@ bool JIT::removeModule(Module *M) {
MutexGuard locked(lock);
- if (jitstate->getModule() == M) {
+ if (jitstate && jitstate->getModule() == M) {
delete jitstate;
jitstate = 0;
}
OpenPOWER on IntegriCloud