From: Richard Smith Date: Tue, 18 Mar 2014 00:35:12 +0000 (+0000) Subject: Fix variable shadowing. Due to a bug in GCC's implementation of range-based for X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=cbf2455a01d5df877b84443e96d9e0ae61633c14;p=clang Fix variable shadowing. Due to a bug in GCC's implementation of range-based for loops, it was making this an error, resulting in buildbot failures. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@204097 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/AST/ASTDumper.cpp b/lib/AST/ASTDumper.cpp index 67a4eaabdf..8134257335 100644 --- a/lib/AST/ASTDumper.cpp +++ b/lib/AST/ASTDumper.cpp @@ -871,8 +871,8 @@ void ASTDumper::VisitIndirectFieldDecl(const IndirectFieldDecl *D) { dumpType(D->getType()); ChildDumper Children(*this); - for (auto *D : D->chain()) - Children.dumpRef(D); + for (auto *Child : D->chain()) + Children.dumpRef(Child); } void ASTDumper::VisitFunctionDecl(const FunctionDecl *D) {