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 | d9f01d47dbede88fe557c8955ba2a855be859bc9 (patch) | |
tree | 1948cb7976672fc3c3acf9476ca995308be9fcfb /lib/Sema/SemaLookup.cpp | |
parent | 12ea5780e7729de3fee009525e49468fd8d0b713 (diff) |
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.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@86680 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaLookup.cpp')
-rw-r--r-- | lib/Sema/SemaLookup.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Sema/SemaLookup.cpp b/lib/Sema/SemaLookup.cpp index eb7c3fa80e..31e64a9f8b 100644 --- a/lib/Sema/SemaLookup.cpp +++ b/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); } |