forked from OSchip/llvm-project
Simplify. This function bails out a few lines above if !Found.empty().
llvm-svn: 189857
This commit is contained in:
parent
ad3029a8de
commit
e7d67f2e01
|
@ -355,7 +355,7 @@ void Sema::LookupTemplateName(LookupResult &Found,
|
||||||
}
|
}
|
||||||
|
|
||||||
if (S && !ObjectType.isNull() && !ObjectTypeSearchedInScope &&
|
if (S && !ObjectType.isNull() && !ObjectTypeSearchedInScope &&
|
||||||
!(getLangOpts().CPlusPlus11 && !Found.empty())) {
|
!getLangOpts().CPlusPlus11) {
|
||||||
// C++03 [basic.lookup.classref]p1:
|
// C++03 [basic.lookup.classref]p1:
|
||||||
// [...] If the lookup in the class of the object expression finds a
|
// [...] 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
|
// template, the name is also looked up in the context of the entire
|
||||||
|
|
Loading…
Reference in New Issue