aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNate Begeman <natebegeman@mac.com>2008-05-18 19:09:10 +0000
committerNate Begeman <natebegeman@mac.com>2008-05-18 19:09:10 +0000
commitf44085a86a3f3cb743fb8822108d8360dd094539 (patch)
tree0cf6baab015f3f0bb2bc4637569edfa12cd381c2
parent68d2d2f82361e29d2f35608094179c6b5c8132eb (diff)
downloadexternal_llvm-f44085a86a3f3cb743fb8822108d8360dd094539.zip
external_llvm-f44085a86a3f3cb743fb8822108d8360dd094539.tar.gz
external_llvm-f44085a86a3f3cb743fb8822108d8360dd094539.tar.bz2
Fix a backwards check in the JIT symbol table code
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51229 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/ExecutionEngine/JIT/JITEmitter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ExecutionEngine/JIT/JITEmitter.cpp b/lib/ExecutionEngine/JIT/JITEmitter.cpp
index 4f13ea4..422022a 100644
--- a/lib/ExecutionEngine/JIT/JITEmitter.cpp
+++ b/lib/ExecutionEngine/JIT/JITEmitter.cpp
@@ -421,7 +421,7 @@ static void RemoveFunctionFromSymbolTable(void *FnStart) {
--SymTabPtr->NumSymbols;
// Finally, if we deleted the final symbol, deallocate the table itself.
- if (SymTabPtr->NumSymbols == 0)
+ if (SymTabPtr->NumSymbols != 0)
return;
*SymTabPtrPtr = 0;