]> granicus.if.org Git - clang/commitdiff
Turn the predicate into an assertion. When could the unequal case happen?
authorZhongxing Xu <xuzhongxing@gmail.com>
Thu, 5 Aug 2010 07:38:23 +0000 (07:38 +0000)
committerZhongxing Xu <xuzhongxing@gmail.com>
Thu, 5 Aug 2010 07:38:23 +0000 (07:38 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@110317 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Checker/GRExprEngine.cpp

index c6551e604d580b35af5bcd770c67c9842d0c5757..d4ee0efb54bae4d371891ca3172356802e2e7ddf 100644 (file)
@@ -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.