r204097 - Fix variable shadowing. Due to a bug in GCC's implementation of range-based for
Richard Smith
richard-llvm at metafoo.co.uk
Mon Mar 17 17:35:12 PDT 2014
Author: rsmith
Date: Mon Mar 17 19:35:12 2014
New Revision: 204097
URL: http://llvm.org/viewvc/llvm-project?rev=204097&view=rev
Log:
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.
Modified:
cfe/trunk/lib/AST/ASTDumper.cpp
Modified: cfe/trunk/lib/AST/ASTDumper.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/ASTDumper.cpp?rev=204097&r1=204096&r2=204097&view=diff
==============================================================================
--- cfe/trunk/lib/AST/ASTDumper.cpp (original)
+++ cfe/trunk/lib/AST/ASTDumper.cpp Mon Mar 17 19:35:12 2014
@@ -871,8 +871,8 @@ void ASTDumper::VisitIndirectFieldDecl(c
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) {
More information about the cfe-commits
mailing list