[cfe-commits] r47651 - /cfe/trunk/Analysis/GRExprEngine.cpp

Ted Kremenek kremenek at apple.com
Tue Feb 26 16:46:25 PST 2008


Author: kremenek
Date: Tue Feb 26 18:46:25 2008
New Revision: 47651

URL: http://llvm.org/viewvc/llvm-project?rev=47651&view=rev
Log:
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.

Modified:
    cfe/trunk/Analysis/GRExprEngine.cpp

Modified: cfe/trunk/Analysis/GRExprEngine.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/Analysis/GRExprEngine.cpp?rev=47651&r1=47650&r2=47651&view=diff

==============================================================================
--- cfe/trunk/Analysis/GRExprEngine.cpp (original)
+++ cfe/trunk/Analysis/GRExprEngine.cpp Tue Feb 26 18:46:25 2008
@@ -508,6 +508,7 @@
   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) {





More information about the cfe-commits mailing list