summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCraig Silverstein <csilvers2000@yahoo.com>2010-07-12 23:30:43 +0000
committerCraig Silverstein <csilvers2000@yahoo.com>2010-07-12 23:30:43 +0000
commit811d1f8ba13e656b6edee984bf1bf8d4b7a72a68 (patch)
tree34a6da06ff4f6bbdc1cf9249aa02bb3bbefa992e
parentc8e11e17aa4b68a0a893b57e35e578eccb659d67 (diff)
downloadbcm5719-llvm-811d1f8ba13e656b6edee984bf1bf8d4b7a72a68.tar.gz
bcm5719-llvm-811d1f8ba13e656b6edee984bf1bf8d4b7a72a68.zip
We should not be recursing over the shadow definitions in UsingDecl --
they're not something the user typed (at least, not here). llvm-svn: 108212
-rw-r--r--clang/include/clang/AST/RecursiveASTVisitor.h5
1 files changed, 0 insertions, 5 deletions
diff --git a/clang/include/clang/AST/RecursiveASTVisitor.h b/clang/include/clang/AST/RecursiveASTVisitor.h
index cf17f53ddca..0853dddbe9e 100644
--- a/clang/include/clang/AST/RecursiveASTVisitor.h
+++ b/clang/include/clang/AST/RecursiveASTVisitor.h
@@ -1062,11 +1062,6 @@ DEF_TRAVERSE_DECL(ObjCPropertyDecl, {
DEF_TRAVERSE_DECL(UsingDecl, {
TRY_TO(TraverseNestedNameSpecifier(D->getTargetNestedNameDecl()));
- // FIXME: should we be iterating over the shadows?
- for (UsingDecl::shadow_iterator I = D->shadow_begin(), E = D->shadow_end();
- I != E; ++I) {
- TRY_TO(TraverseDecl(*I));
- }
})
DEF_TRAVERSE_DECL(UsingDirectiveDecl, {
OpenPOWER on IntegriCloud