]> granicus.if.org Git - clang/commitdiff
Remove dead code.
authorRichard Smith <richard-llvm@metafoo.co.uk>
Mon, 8 Feb 2016 19:10:14 +0000 (19:10 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Mon, 8 Feb 2016 19:10:14 +0000 (19:10 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@260124 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Sema/SemaLookup.cpp

index 93d503e20b5b45feab2d2ee7484d36f96cb2e097..3efcf5a3e410a92bf704204fc01e5ff5ad4b0d54 100644 (file)
@@ -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.