diff options
author | Ted Kremenek <kremenek@apple.com> | 2010-08-05 15:03:30 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2010-08-05 15:03:30 +0000 |
commit | 9b44eaf402c991d20306e6224a6ce6e4ea02ce48 (patch) | |
tree | 483c17bc7fc2b8567278431e32d77e2ba43f061a /lib/Checker/GRExprEngine.cpp | |
parent | 5a15dc1a4348338e9a026a24c8d9a59f2bdd5ecf (diff) |
Revert r110317, and add a comment why the assertion is not an invariant.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@110330 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Checker/GRExprEngine.cpp')
-rw-r--r-- | lib/Checker/GRExprEngine.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/Checker/GRExprEngine.cpp b/lib/Checker/GRExprEngine.cpp index d4ee0efb54..4ecc75f105 100644 --- a/lib/Checker/GRExprEngine.cpp +++ b/lib/Checker/GRExprEngine.cpp @@ -236,11 +236,11 @@ 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()) { - assert(checkersEvaluated == Checkers.size()); + // that responds to this callback. Note that 'checkersEvaluated' might + // not be the same as Checkers.size() if one of the Checkers generates + // a sink node. + if (NewCO.get() && checkersEvaluated == Checkers.size()) CO_Ref = NewCO.take(); - } // Don't autotransition. The CheckerContext objects should do this // automatically. |