From e7d67f2e01c4a49b1f7821946b4b103a51bcc895 Mon Sep 17 00:00:00 2001 From: Richard Smith Date: Tue, 3 Sep 2013 21:22:41 +0000 Subject: Simplify. This function bails out a few lines above if !Found.empty(). llvm-svn: 189857 --- clang/lib/Sema/SemaTemplate.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'clang/lib/Sema') diff --git a/clang/lib/Sema/SemaTemplate.cpp b/clang/lib/Sema/SemaTemplate.cpp index 426b13cfaf4..015d9d8ce94 100644 --- a/clang/lib/Sema/SemaTemplate.cpp +++ b/clang/lib/Sema/SemaTemplate.cpp @@ -355,7 +355,7 @@ void Sema::LookupTemplateName(LookupResult &Found, } 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 -- cgit v1.2.3