diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2014-03-18 00:35:12 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2014-03-18 00:35:12 +0000 |
commit | 8aa4922ac51c399532ef9a53f12a0bc79938fc19 (patch) | |
tree | fb944bba40580308eb66d6b6bd9617a8e8c7d0e8 /clang/lib/AST/ASTDumper.cpp | |
parent | 6a70c6420f419d0bf20a3eae28c0cfd94623d4e3 (diff) | |
download | bcm5719-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.cpp | 4 |
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) { |