summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2016-02-08 19:10:14 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2016-02-08 19:10:14 +0000
commitfc8c5048dcc7bac257aaa8f4424328478846edbc (patch)
tree872d55a06adf10d3cf08f43affc2d3bfc3c1e466
parent92edab2df9957ab7e38d5a00f2452daec369f5db (diff)
downloadbcm5719-llvm-fc8c5048dcc7bac257aaa8f4424328478846edbc.tar.gz
bcm5719-llvm-fc8c5048dcc7bac257aaa8f4424328478846edbc.zip
Remove dead code.
llvm-svn: 260124
-rw-r--r--clang/lib/Sema/SemaLookup.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/clang/lib/Sema/SemaLookup.cpp b/clang/lib/Sema/SemaLookup.cpp
index 93d503e20b5..3efcf5a3e41 100644
--- a/clang/lib/Sema/SemaLookup.cpp
+++ b/clang/lib/Sema/SemaLookup.cpp
@@ -432,10 +432,6 @@ static bool isPreferredLookupResult(Sema &S, Sema::LookupNameKind Kind,
if (Prev == EUnderlying)
return true;
return false;
-
- // If the existing declaration is hidden, prefer the new one. Otherwise,
- // keep what we've got.
- return !S.isVisible(Existing);
}
/// Determine whether \p D can hide a tag declaration.
OpenPOWER on IntegriCloud