summaryrefslogtreecommitdiffstats
path: root/clang
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2013-09-03 21:22:41 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2013-09-03 21:22:41 +0000
commite7d67f2e01c4a49b1f7821946b4b103a51bcc895 (patch)
treee8180aef1035c0124fbf4eebf3188eff65e8ba2b /clang
parentad3029a8de2e0eeb51a02e062273861dc94ed396 (diff)
downloadbcm5719-llvm-e7d67f2e01c4a49b1f7821946b4b103a51bcc895.tar.gz
bcm5719-llvm-e7d67f2e01c4a49b1f7821946b4b103a51bcc895.zip
Simplify. This function bails out a few lines above if !Found.empty().
llvm-svn: 189857
Diffstat (limited to 'clang')
-rw-r--r--clang/lib/Sema/SemaTemplate.cpp2
1 files changed, 1 insertions, 1 deletions
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
OpenPOWER on IntegriCloud