]> granicus.if.org Git - clang/commitdiff
More working around a GCC range-based for scope bug.
authorRichard Smith <richard-llvm@metafoo.co.uk>
Tue, 18 Mar 2014 02:37:59 +0000 (02:37 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Tue, 18 Mar 2014 02:37:59 +0000 (02:37 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@204108 91177308-0d34-0410-b5e6-96231b3b80d8

lib/AST/ASTDumper.cpp

index b4cdcea8323372894a32bafb552fe84dc26b7ac5..eb5a7d3b05d58fad2a37045d134427ce2d1a3caf 100644 (file)
@@ -1351,8 +1351,8 @@ void ASTDumper::VisitObjCProtocolDecl(const ObjCProtocolDecl *D) {
   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(const ObjCInterfaceDecl *D) {
 
   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) {