diff options
author | Nick Lewycky <nicholas@mxc.ca> | 2012-03-14 20:41:00 +0000 |
---|---|---|
committer | Nick Lewycky <nicholas@mxc.ca> | 2012-03-14 20:41:00 +0000 |
commit | 5a7120cf82b5f0110cb70aacad850c594a55b378 (patch) | |
tree | 038ec61c24a410cc408d8c4c0dd9a710638d2875 /lib/Sema/SemaOverload.cpp | |
parent | d53e877ddf885da28aa4668148a5f0ce0045ab54 (diff) |
When emitting a diagnostic about two-phase name lookup, don't do useless
qualified name lookups into transparent contexts.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@152739 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaOverload.cpp')
-rw-r--r-- | lib/Sema/SemaOverload.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Sema/SemaOverload.cpp b/lib/Sema/SemaOverload.cpp index fe999b1599..b93fb093fa 100644 --- a/lib/Sema/SemaOverload.cpp +++ b/lib/Sema/SemaOverload.cpp @@ -9244,6 +9244,9 @@ DiagnoseTwoPhaseLookup(Sema &SemaRef, SourceLocation FnLoc, return false; for (DeclContext *DC = SemaRef.CurContext; DC; DC = DC->getParent()) { + if (DC->isTransparentContext()) + continue; + SemaRef.LookupQualifiedName(R, DC); if (!R.empty()) { |