diff options
author | John McCall <rjmccall@apple.com> | 2009-11-10 09:25:37 +0000 |
---|---|---|
committer | John McCall <rjmccall@apple.com> | 2009-11-10 09:25:37 +0000 |
commit | b8be78b75368997cbd81f68206b0959cf72c0793 (patch) | |
tree | 03e02116ec7c8cdd97686a2d62b07783e111ba28 /clang/lib/Sema/SemaLookup.cpp | |
parent | 9757d0363df04739892d177266fa3e7a2522c428 (diff) | |
download | bcm5719-llvm-b8be78b75368997cbd81f68206b0959cf72c0793.tar.gz bcm5719-llvm-b8be78b75368997cbd81f68206b0959cf72c0793.zip |
Fix a similar problem with qualified lookup through using directives,
although in this case we probably just run a risk of duplicating work;
I can't think of how this could cause a bug.
llvm-svn: 86680
Diffstat (limited to 'clang/lib/Sema/SemaLookup.cpp')
-rw-r--r-- | clang/lib/Sema/SemaLookup.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaLookup.cpp b/clang/lib/Sema/SemaLookup.cpp index eb7c3fa80e2..31e64a9f8b4 100644 --- a/clang/lib/Sema/SemaLookup.cpp +++ b/clang/lib/Sema/SemaLookup.cpp @@ -783,7 +783,7 @@ static bool LookupQualifiedNameInUsingDirectives(Sema::LookupResult &R, // We have already looked into the initial namespace; seed the queue // with its using-children. for (; I != E; ++I) { - NamespaceDecl *ND = (*I)->getNominatedNamespace(); + NamespaceDecl *ND = (*I)->getNominatedNamespace()->getOriginalNamespace(); if (Visited.insert(ND).second) Queue.push_back(ND); } |