[cfe-commits] r57194 - /cfe/trunk/lib/Analysis/GRExprEngine.cpp

Ted Kremenek kremenek at apple.com
Mon Oct 6 11:43:53 PDT 2008


Author: kremenek
Date: Mon Oct  6 13:43:53 2008
New Revision: 57194

URL: http://llvm.org/viewvc/llvm-project?rev=57194&view=rev
Log:
Don't use DeclStmt::getDecl(); this will eventually disappear.  Just fetch the first decl using the DeclStmt::decl_iterator.

Modified:
    cfe/trunk/lib/Analysis/GRExprEngine.cpp

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

==============================================================================
--- cfe/trunk/lib/Analysis/GRExprEngine.cpp (original)
+++ cfe/trunk/lib/Analysis/GRExprEngine.cpp Mon Oct  6 13:43:53 2008
@@ -1484,10 +1484,8 @@
 
 void GRExprEngine::VisitDeclStmt(DeclStmt* DS, NodeTy* Pred, NodeSet& Dst) {  
 
-  // The CFG has one DeclStmt per Decl, so we don't need to walk the 
-  // Decl chain.
-  
-  ScopedDecl* D = DS->getDecl();
+  // The CFG has one DeclStmt per Decl.  
+  ScopedDecl* D = *DS->decl_begin();
   
   if (!D || !isa<VarDecl>(D))
     return;





More information about the cfe-commits mailing list