summaryrefslogtreecommitdiffstats
path: root/clang/lib/StaticAnalyzer
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2012-01-07 00:10:49 +0000
committerTed Kremenek <kremenek@apple.com>2012-01-07 00:10:49 +0000
commit6cb36f7a302af387c1e338705569dc9373fc74dd (patch)
treeea56d33bfa8e45df0a9cdcf072a7685336708e6f /clang/lib/StaticAnalyzer
parentaee86cee357a5839c5d01633187590c4a5e4ce71 (diff)
downloadbcm5719-llvm-6cb36f7a302af387c1e338705569dc9373fc74dd.tar.gz
bcm5719-llvm-6cb36f7a302af387c1e338705569dc9373fc74dd.zip
Correctly enqueue successors in ExprEngine::processCallExit().
llvm-svn: 147698
Diffstat (limited to 'clang/lib/StaticAnalyzer')
-rw-r--r--clang/lib/StaticAnalyzer/Core/ExprEngineCallAndReturn.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/clang/lib/StaticAnalyzer/Core/ExprEngineCallAndReturn.cpp b/clang/lib/StaticAnalyzer/Core/ExprEngineCallAndReturn.cpp
index 8e9cc3c91f3..8a08c692d3d 100644
--- a/clang/lib/StaticAnalyzer/Core/ExprEngineCallAndReturn.cpp
+++ b/clang/lib/StaticAnalyzer/Core/ExprEngineCallAndReturn.cpp
@@ -72,8 +72,12 @@ void ExprEngine::processCallExit(ExplodedNode *Pred) {
ExplodedNodeSet Dst;
getCheckerManager().runCheckersForPostStmt(Dst, N, CE, *this);
- // Enqueue nodes in Dst on the worklist.
- Engine.enqueue(Dst);
+ // Enqueue the next element in the block.
+ for (ExplodedNodeSet::iterator I = Dst.begin(), E = Dst.end(); I != E; ++I) {
+ Engine.getWorkList()->enqueue(*I,
+ calleeCtx->getCallSiteBlock(),
+ calleeCtx->getIndex()+1);
+ }
}
static bool isPointerToConst(const ParmVarDecl *ParamDecl) {
OpenPOWER on IntegriCloud