projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
92edab2
)
Remove dead code.
author
Richard Smith
<richard-llvm@metafoo.co.uk>
Mon, 8 Feb 2016 19:10:14 +0000
(19:10 +0000)
committer
Richard Smith
<richard-llvm@metafoo.co.uk>
Mon, 8 Feb 2016 19:10:14 +0000
(19:10 +0000)
llvm-svn: 260124
clang/lib/Sema/SemaLookup.cpp
patch
|
blob
|
history
diff --git
a/clang/lib/Sema/SemaLookup.cpp
b/clang/lib/Sema/SemaLookup.cpp
index
93d503e
..
3efcf5a
100644
(file)
--- 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.