From cbf2455a01d5df877b84443e96d9e0ae61633c14 Mon Sep 17 00:00:00 2001 From: Richard Smith Date: Tue, 18 Mar 2014 00:35:12 +0000 Subject: [PATCH] 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 --- lib/AST/ASTDumper.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) { -- 2.50.1