[cfe-commits] r167189 - /cfe/trunk/lib/StaticAnalyzer/Checkers/MallocChecker.cpp

Jordan Rose jordan_rose at apple.com
Wed Oct 31 17:25:15 PDT 2012


Author: jrose
Date: Wed Oct 31 19:25:15 2012
New Revision: 167189

URL: http://llvm.org/viewvc/llvm-project?rev=167189&view=rev
Log:
[analyzer] Fix typo in r167186.

Modified:
    cfe/trunk/lib/StaticAnalyzer/Checkers/MallocChecker.cpp

Modified: cfe/trunk/lib/StaticAnalyzer/Checkers/MallocChecker.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/StaticAnalyzer/Checkers/MallocChecker.cpp?rev=167189&r1=167188&r2=167189&view=diff
==============================================================================
--- cfe/trunk/lib/StaticAnalyzer/Checkers/MallocChecker.cpp (original)
+++ cfe/trunk/lib/StaticAnalyzer/Checkers/MallocChecker.cpp Wed Oct 31 19:25:15 2012
@@ -1305,7 +1305,7 @@
     // 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;





More information about the cfe-commits mailing list