[analyzer] Fix typo in r167186.
authorJordan Rose <jordan_rose@apple.com>
Thu, 1 Nov 2012 00:25:15 +0000 (00:25 +0000)
committerJordan Rose <jordan_rose@apple.com>
Thu, 1 Nov 2012 00:25:15 +0000 (00:25 +0000)
llvm-svn: 167189

clang/lib/StaticAnalyzer/Checkers/MallocChecker.cpp

index 1a6e250..378cd10 100644 (file)
@@ -1305,7 +1305,7 @@ ProgramStateRef MallocChecker::evalAssume(ProgramStateRef state,
     // If the symbol is assumed to be NULL, remove it from consideration.
     ConstraintManager &CMgr = state->getConstraintManager();
     ConditionTruthVal AllocFailed = CMgr.isNull(state, I.getKey());
-    if (AllocFailed.isConstrainedTrue())
+    if (!AllocFailed.isConstrainedTrue())
       continue;
 
     SymbolRef ReallocSym = I.getData().ReallocatedSym;