From: Richard Smith Date: Tue, 18 Mar 2014 02:37:59 +0000 (+0000) Subject: More working around a GCC range-based for scope bug. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b48926b4ea173b2c87fe92c2a14dea2d1c93022d;p=clang More working around a GCC range-based for scope bug. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@204108 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/AST/ASTDumper.cpp b/lib/AST/ASTDumper.cpp index b4cdcea832..eb5a7d3b05 100644 --- a/lib/AST/ASTDumper.cpp +++ b/lib/AST/ASTDumper.cpp @@ -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) {