From fc8c5048dcc7bac257aaa8f4424328478846edbc Mon Sep 17 00:00:00 2001 From: Richard Smith Date: Mon, 8 Feb 2016 19:10:14 +0000 Subject: [PATCH] Remove dead code. llvm-svn: 260124 --- clang/lib/Sema/SemaLookup.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/clang/lib/Sema/SemaLookup.cpp b/clang/lib/Sema/SemaLookup.cpp index 93d503e..3efcf5a 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. -- 2.7.4