aboutsummaryrefslogtreecommitdiff
path: root/lib/Checker/GRExprEngine.cpp
diff options
context:
space:
mode:
authorZhongxing Xu <xuzhongxing@gmail.com>2010-08-05 07:38:23 +0000
committerZhongxing Xu <xuzhongxing@gmail.com>2010-08-05 07:38:23 +0000
commitf5072afdfd5c2a45fd2adf3659b0696bc8c57717 (patch)
treeb0468ca4d163d04c8277aaa7f46a951064d67a0b /lib/Checker/GRExprEngine.cpp
parent62e22ee7a17bbba427367ec2f9c8c4f60d778ac5 (diff)
Turn the predicate into an assertion. When could the unequal case happen?
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@110317 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Checker/GRExprEngine.cpp')
-rw-r--r--lib/Checker/GRExprEngine.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/Checker/GRExprEngine.cpp b/lib/Checker/GRExprEngine.cpp
index c6551e604d..d4ee0efb54 100644
--- a/lib/Checker/GRExprEngine.cpp
+++ b/lib/Checker/GRExprEngine.cpp
@@ -237,8 +237,10 @@ void GRExprEngine::CheckerVisit(const Stmt *S, ExplodedNodeSet &Dst,
// If we built NewCO, check if we called all the checkers. This is important
// so that we know that we accurately determined the entire set of checkers
// that responds to this callback.
- if (NewCO.get() && checkersEvaluated == Checkers.size())
+ if (NewCO.get()) {
+ assert(checkersEvaluated == Checkers.size());
CO_Ref = NewCO.take();
+ }
// Don't autotransition. The CheckerContext objects should do this
// automatically.