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

Ted Kremenek kremenek at apple.com
Tue Feb 26 16:44:12 PST 2008


Author: kremenek
Date: Tue Feb 26 18:44:11 2008
New Revision: 47650

URL: http://llvm.org/viewvc/llvm-project?rev=47650&view=rev
Log:
Fixed bug in the core transfer function logic for CallExprs where we would
sometimes skip evaluating all the arguments when some arguments would not
create new ExplodedNodes.

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=47650&r1=47649&r2=47650&view=diff

==============================================================================
--- cfe/trunk/Analysis/GRExprEngine.cpp (original)
+++ cfe/trunk/Analysis/GRExprEngine.cpp Tue Feb 26 18:44:11 2008
@@ -490,7 +490,10 @@
   if (AI != AE) {
     
     NodeSet DstTmp;  
+    
     Visit(*AI, Pred, DstTmp);
+    if (DstTmp.empty()) DstTmp.Add(Pred);
+    
     ++AI;
     
     for (NodeSet::iterator DI=DstTmp.begin(), DE=DstTmp.end(); DI != DE; ++DI)





More information about the cfe-commits mailing list