summaryrefslogtreecommitdiffstats
path: root/clang/lib/Analysis/GRExprEngine.cpp
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2009-11-25 22:23:25 +0000
committerTed Kremenek <kremenek@apple.com>2009-11-25 22:23:25 +0000
commite6929ffc21fdb77941cfa48fd3bb0f719adf76fe (patch)
tree85653fddd2e9bf555a3f9538ce28a59f16f50284 /clang/lib/Analysis/GRExprEngine.cpp
parent70a87883682bbaf3539f3c296c0810a17d8b0898 (diff)
downloadbcm5719-llvm-e6929ffc21fdb77941cfa48fd3bb0f719adf76fe.tar.gz
bcm5719-llvm-e6929ffc21fdb77941cfa48fd3bb0f719adf76fe.zip
Add post-visit Checker support in GRExprEngine for BlockExpr.
llvm-svn: 89890
Diffstat (limited to 'clang/lib/Analysis/GRExprEngine.cpp')
-rw-r--r--clang/lib/Analysis/GRExprEngine.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/clang/lib/Analysis/GRExprEngine.cpp b/clang/lib/Analysis/GRExprEngine.cpp
index a0040f4e874..cb3f68b41df 100644
--- a/clang/lib/Analysis/GRExprEngine.cpp
+++ b/clang/lib/Analysis/GRExprEngine.cpp
@@ -1103,10 +1103,16 @@ void GRExprEngine::VisitLogicalExpr(BinaryOperator* B, ExplodedNode* Pred,
void GRExprEngine::VisitBlockExpr(BlockExpr *BE, ExplodedNode *Pred,
ExplodedNodeSet &Dst) {
+
+ ExplodedNodeSet Tmp;
+
CanQualType T = getContext().getCanonicalType(BE->getType());
SVal V = ValMgr.getBlockPointer(BE->getBlockDecl(), T);
- MakeNode(Dst, BE, Pred, GetState(Pred)->BindExpr(BE, V),
+ MakeNode(Tmp, BE, Pred, GetState(Pred)->BindExpr(BE, V),
ProgramPoint::PostLValueKind);
+
+ // Post-visit the BlockExpr.
+ CheckerVisit(BE, Dst, Tmp, false);
}
void GRExprEngine::VisitDeclRefExpr(DeclRefExpr *Ex, ExplodedNode *Pred,
OpenPOWER on IntegriCloud