[cfe-commits] r86680 - /cfe/trunk/lib/Sema/SemaLookup.cpp
John McCall
rjmccall at apple.com
Tue Nov 10 01:25:38 PST 2009
Author: rjmccall
Date: Tue Nov 10 03:25:37 2009
New Revision: 86680
URL: http://llvm.org/viewvc/llvm-project?rev=86680&view=rev
Log:
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.
Modified:
cfe/trunk/lib/Sema/SemaLookup.cpp
Modified: cfe/trunk/lib/Sema/SemaLookup.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaLookup.cpp?rev=86680&r1=86679&r2=86680&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaLookup.cpp (original)
+++ cfe/trunk/lib/Sema/SemaLookup.cpp Tue Nov 10 03:25:37 2009
@@ -783,7 +783,7 @@
// 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);
}
More information about the cfe-commits
mailing list