r189857 - Simplify. This function bails out a few lines above if !Found.empty().
Richard Smith
richard-llvm at metafoo.co.uk
Tue Sep 3 14:22:41 PDT 2013
Author: rsmith
Date: Tue Sep 3 16:22:41 2013
New Revision: 189857
URL: http://llvm.org/viewvc/llvm-project?rev=189857&view=rev
Log:
Simplify. This function bails out a few lines above if !Found.empty().
Modified:
cfe/trunk/lib/Sema/SemaTemplate.cpp
Modified: cfe/trunk/lib/Sema/SemaTemplate.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaTemplate.cpp?rev=189857&r1=189856&r2=189857&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaTemplate.cpp (original)
+++ cfe/trunk/lib/Sema/SemaTemplate.cpp Tue Sep 3 16:22:41 2013
@@ -355,7 +355,7 @@ void Sema::LookupTemplateName(LookupResu
}
if (S && !ObjectType.isNull() && !ObjectTypeSearchedInScope &&
- !(getLangOpts().CPlusPlus11 && !Found.empty())) {
+ !getLangOpts().CPlusPlus11) {
// C++03 [basic.lookup.classref]p1:
// [...] If the lookup in the class of the object expression finds a
// template, the name is also looked up in the context of the entire
More information about the cfe-commits
mailing list