Fix a backwards check in the JIT symbol table code
authorNate Begeman <natebegeman@mac.com>
Sun, 18 May 2008 19:09:10 +0000 (19:09 +0000)
committerNate Begeman <natebegeman@mac.com>
Sun, 18 May 2008 19:09:10 +0000 (19:09 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51229 91177308-0d34-0410-b5e6-96231b3b80d8

lib/ExecutionEngine/JIT/JITEmitter.cpp

index 4f13ea4d49a0a929d9d547cc1ba633b0c2963995..422022af9cac48b6ac652134e4cdc5947218f6ec 100644 (file)
@@ -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;