diff options
author | Ted Kremenek <kremenek@apple.com> | 2010-06-30 07:28:52 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2010-06-30 07:28:52 +0000 |
commit | 169e43c4cf82e47aabe0cb7a4a2570d99a3d30e7 (patch) | |
tree | f4861fce6be02f1286dac7157570be74f471f038 /clang/lib/Checker | |
parent | 725ed0364b7030c3ead89e14643f6a9fece8a2d3 (diff) | |
download | bcm5719-llvm-169e43c4cf82e47aabe0cb7a4a2570d99a3d30e7.tar.gz bcm5719-llvm-169e43c4cf82e47aabe0cb7a4a2570d99a3d30e7.zip |
Correctly implement the CheckerVisit optimization introduced in r106884, but this time actually used the cached checker list when calling back to Checker visit methods. This reduces the analysis time for sqlite3.c by 8%.
llvm-svn: 107259
Diffstat (limited to 'clang/lib/Checker')
-rw-r--r-- | clang/lib/Checker/GRExprEngine.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Checker/GRExprEngine.cpp b/clang/lib/Checker/GRExprEngine.cpp index c4bf9696efa..7b4bfb9b028 100644 --- a/clang/lib/Checker/GRExprEngine.cpp +++ b/clang/lib/Checker/GRExprEngine.cpp @@ -204,7 +204,7 @@ void GRExprEngine::CheckerVisit(Stmt *S, ExplodedNodeSet &Dst, ExplodedNodeSet *PrevSet = &Src; unsigned checkersEvaluated = 0; - for (CheckersOrdered::iterator I=Checkers.begin(),E=Checkers.end(); I!=E;++I){ + for (CheckersOrdered::iterator I=CO->begin(), E=CO->end(); I!=E; ++I){ ExplodedNodeSet *CurrSet = 0; if (I+1 == E) CurrSet = &Dst; |