From: Ted Kremenek Date: Wed, 27 Feb 2008 00:46:25 +0000 (+0000) Subject: Similar bug fix to r47650; when processing CallExprs if we did not generate an X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3ef1512397c51c92631b5e349a18e816a6e49bd5;p=clang Similar bug fix to r47650; when processing CallExprs if we did not generate an ExplodedNode for the Callee subexpression we would not evaluate the CallExpr transfer function. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@47651 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/Analysis/GRExprEngine.cpp b/Analysis/GRExprEngine.cpp index 4b1e99e815..13ae4febf9 100644 --- a/Analysis/GRExprEngine.cpp +++ b/Analysis/GRExprEngine.cpp @@ -508,6 +508,7 @@ void GRExprEngine::VisitCall(CallExpr* CE, NodeTy* Pred, Expr* Callee = CE->getCallee()->IgnoreParenCasts(); VisitLVal(Callee, Pred, DstTmp); + if (DstTmp.empty()) DstTmp.Add(Pred); // Finally, evaluate the function call. for (NodeSet::iterator DI = DstTmp.begin(), DE = DstTmp.end(); DI!=DE; ++DI) {