summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST/ASTDumper.cpp
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2014-03-18 00:35:12 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2014-03-18 00:35:12 +0000
commit8aa4922ac51c399532ef9a53f12a0bc79938fc19 (patch)
treefb944bba40580308eb66d6b6bd9617a8e8c7d0e8 /clang/lib/AST/ASTDumper.cpp
parent6a70c6420f419d0bf20a3eae28c0cfd94623d4e3 (diff)
downloadbcm5719-llvm-8aa4922ac51c399532ef9a53f12a0bc79938fc19.tar.gz
bcm5719-llvm-8aa4922ac51c399532ef9a53f12a0bc79938fc19.zip
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. llvm-svn: 204097
Diffstat (limited to 'clang/lib/AST/ASTDumper.cpp')
-rw-r--r--clang/lib/AST/ASTDumper.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/AST/ASTDumper.cpp b/clang/lib/AST/ASTDumper.cpp
index 67a4eaabdfc..81342573359 100644
--- a/clang/lib/AST/ASTDumper.cpp
+++ b/clang/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) {
OpenPOWER on IntegriCloud