[cfe-commits] r68001 - /cfe/trunk/include/clang/Analysis/Visitors/CFGRecStmtDeclVisitor.h

Chris Lattner sabre at nondot.org
Sun Mar 29 09:35:19 PDT 2009


Author: lattner
Date: Sun Mar 29 11:35:09 2009
New Revision: 68001

URL: http://llvm.org/viewvc/llvm-project?rev=68001&view=rev
Log:
DeclRefExpr refers to one decl, not all the declarators in a declaration.

Ted, please check this, this change causes no regression tests to fail.

Modified:
    cfe/trunk/include/clang/Analysis/Visitors/CFGRecStmtDeclVisitor.h

Modified: cfe/trunk/include/clang/Analysis/Visitors/CFGRecStmtDeclVisitor.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Analysis/Visitors/CFGRecStmtDeclVisitor.h?rev=68001&r1=68000&r2=68001&view=diff

==============================================================================
--- cfe/trunk/include/clang/Analysis/Visitors/CFGRecStmtDeclVisitor.h (original)
+++ cfe/trunk/include/clang/Analysis/Visitors/CFGRecStmtDeclVisitor.h Sun Mar 29 11:35:09 2009
@@ -37,8 +37,7 @@
 public:  
 
   void VisitDeclRefExpr(DeclRefExpr* DR) {
-    for (Decl* D = DR->getDecl(); D != NULL; D = D->getNextDeclarator())
-      static_cast<ImplClass*>(this)->VisitDecl(D); 
+    static_cast<ImplClass*>(this)->VisitDecl(DR->getDecl()); 
   }
   
   void VisitDeclStmt(DeclStmt* DS) {





More information about the cfe-commits mailing list