diff options
author | Jordan Rose <jordan_rose@apple.com> | 2012-11-01 00:18:27 +0000 |
---|---|---|
committer | Jordan Rose <jordan_rose@apple.com> | 2012-11-01 00:18:27 +0000 |
commit | ec8d420d4fa57fc6b5a5a2b1446742e976a7ba00 (patch) | |
tree | d7d3d58808c9f042f0b0295a04fa204fd77cc1f3 /lib/StaticAnalyzer/Checkers/RetainCountChecker.cpp | |
parent | 889b99e6d5b389c0ed99e7ad8470c28b146a42d3 (diff) |
[analyzer] Rename ConditionTruthVal::isTrue to isConstrainedTrue.
(and the same for isFalse)
No functionality change.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@167186 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/StaticAnalyzer/Checkers/RetainCountChecker.cpp')
-rw-r--r-- | lib/StaticAnalyzer/Checkers/RetainCountChecker.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/StaticAnalyzer/Checkers/RetainCountChecker.cpp b/lib/StaticAnalyzer/Checkers/RetainCountChecker.cpp index 36e17faf4f..274eef8678 100644 --- a/lib/StaticAnalyzer/Checkers/RetainCountChecker.cpp +++ b/lib/StaticAnalyzer/Checkers/RetainCountChecker.cpp @@ -3448,7 +3448,9 @@ ProgramStateRef RetainCountChecker::evalAssume(ProgramStateRef state, for (RefBindings::iterator I = B.begin(), E = B.end(); I != E; ++I) { // Check if the symbol is null stop tracking the symbol. - if (state->getConstraintManager().isNull(state, I.getKey()).isTrue()) { + ConstraintManager &CMgr = state->getConstraintManager(); + ConditionTruthVal AllocFailed = CMgr.isNull(state, I.getKey()); + if (AllocFailed.isConstrainedTrue()) { changed = true; B = RefBFactory.remove(B, I.getKey()); } |