r204108 - More working around a GCC range-based for scope bug.

Richard Smith richard-llvm at metafoo.co.uk
Mon Mar 17 19:37:59 PDT 2014


Author: rsmith
Date: Mon Mar 17 21:37:59 2014
New Revision: 204108

URL: http://llvm.org/viewvc/llvm-project?rev=204108&view=rev
Log:
More working around a GCC range-based for scope bug.

Modified:
    cfe/trunk/lib/AST/ASTDumper.cpp

Modified: cfe/trunk/lib/AST/ASTDumper.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/ASTDumper.cpp?rev=204108&r1=204107&r2=204108&view=diff
==============================================================================
--- cfe/trunk/lib/AST/ASTDumper.cpp (original)
+++ cfe/trunk/lib/AST/ASTDumper.cpp Mon Mar 17 21:37:59 2014
@@ -1351,8 +1351,8 @@ void ASTDumper::VisitObjCProtocolDecl(co
   dumpName(D);
 
   ChildDumper Children(*this);
-  for (auto *D : D->protocols())
-    Children.dumpRef(D);
+  for (auto *Child : D->protocols())
+    Children.dumpRef(Child);
 }
 
 void ASTDumper::VisitObjCInterfaceDecl(const ObjCInterfaceDecl *D) {
@@ -1361,8 +1361,8 @@ void ASTDumper::VisitObjCInterfaceDecl(c
 
   ChildDumper Children(*this);
   Children.dumpRef(D->getImplementation());
-  for (auto *D : D->protocols())
-    Children.dumpRef(D);
+  for (auto *Child : D->protocols())
+    Children.dumpRef(Child);
 }
 
 void ASTDumper::VisitObjCImplementationDecl(const ObjCImplementationDecl *D) {





More information about the cfe-commits mailing list