diff options
author | Ted Kremenek <kremenek@apple.com> | 2009-11-12 04:35:08 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2009-11-12 04:35:08 +0000 |
commit | 31a241a0bbb281040b02ced04d1ad6c45c586d73 (patch) | |
tree | 30e197ab38c6a84b9378f5d973dbea9efd0749f0 /lib/Analysis/GRExprEngine.cpp | |
parent | 7422db3eb6753370ece0443c23f636b233f5ec9b (diff) |
Enhance Checker class (and GRExprEngine) to support PostVisitation for CallExprs. No clients (yet).
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@86949 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/GRExprEngine.cpp')
-rw-r--r-- | lib/Analysis/GRExprEngine.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/lib/Analysis/GRExprEngine.cpp b/lib/Analysis/GRExprEngine.cpp index 08151e7d61..50d53df2b7 100644 --- a/lib/Analysis/GRExprEngine.cpp +++ b/lib/Analysis/GRExprEngine.cpp @@ -1575,25 +1575,25 @@ void GRExprEngine::VisitCallRec(CallExpr* CE, ExplodedNode* Pred, continue; // Dispatch to the plug-in transfer function. - - unsigned size = Dst.size(); SaveOr OldHasGen(Builder->HasGeneratedNode); + Pred = *DI; // Dispatch to transfer function logic to handle the call itself. + // FIXME: Allow us to chain together transfer functions. assert(Builder && "GRStmtNodeBuilder must be defined."); + ExplodedNodeSet DstTmp; - // FIXME: Allow us to chain together transfer functions. - Pred = *DI; - - if (!EvalOSAtomic(Dst, *this, *Builder, CE, L, Pred)) - getTF().EvalCall(Dst, *this, *Builder, CE, L, Pred); + if (!EvalOSAtomic(DstTmp, *this, *Builder, CE, L, Pred)) + getTF().EvalCall(DstTmp, *this, *Builder, CE, L, Pred); // Handle the case where no nodes where generated. Auto-generate that // contains the updated state if we aren't generating sinks. - - if (!Builder->BuildSinks && Dst.size() == size && + if (!Builder->BuildSinks && DstTmp.empty() && !Builder->HasGeneratedNode) - MakeNode(Dst, CE, Pred, state); + MakeNode(DstTmp, CE, Pred, state); + + // Perform the post-condition check of the CallExpr. + CheckerVisit(CE, Dst, DstTmp, false); } } |