From 7fcb35f5e159e34fe349e92cf5f703b306e029e7 Mon Sep 17 00:00:00 2001 From: Richard Smith Date: Tue, 18 Mar 2014 02:37:59 +0000 Subject: [PATCH] More working around a GCC range-based for scope bug. llvm-svn: 204108 --- clang/lib/AST/ASTDumper.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/clang/lib/AST/ASTDumper.cpp b/clang/lib/AST/ASTDumper.cpp index b4cdcea83233..eb5a7d3b05d5 100644 --- a/clang/lib/AST/ASTDumper.cpp +++ b/clang/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) {