From: Richard Smith Date: Mon, 8 Feb 2016 19:10:14 +0000 (+0000) Subject: Remove dead code. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8c3c8d4f14bd0fcba3506c2e928654b446c57ffe;p=clang Remove dead code. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@260124 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Sema/SemaLookup.cpp b/lib/Sema/SemaLookup.cpp index 93d503e20b..3efcf5a3e4 100644 --- a/lib/Sema/SemaLookup.cpp +++ b/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.