summaryrefslogtreecommitdiffstats
path: root/lib/Sema/SemaLookup.cpp
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2018-09-12 23:37:58 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2018-09-12 23:37:58 +0000
commit13d1bd3167f4ddeeaa36d713190a6c3322688684 (patch)
tree4bf95c6c60844ea65f37367fe499f8670ad04730 /lib/Sema/SemaLookup.cpp
parent7b26c1cf7574c1156ccaad5a34d23fadbf006a89 (diff)
Remove dead code made unnecessary by r342018.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@342098 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaLookup.cpp')
-rw-r--r--lib/Sema/SemaLookup.cpp7
1 files changed, 0 insertions, 7 deletions
diff --git a/lib/Sema/SemaLookup.cpp b/lib/Sema/SemaLookup.cpp
index f7f5957f96..103aa7edd9 100644
--- a/lib/Sema/SemaLookup.cpp
+++ b/lib/Sema/SemaLookup.cpp
@@ -1409,13 +1409,6 @@ bool Sema::hasVisibleMergedDefinition(NamedDecl *Def) {
}
bool Sema::hasMergedDefinitionInCurrentModule(NamedDecl *Def) {
- // FIXME: When not in local visibility mode, we can't tell the difference
- // between a declaration being visible because we merged a local copy of
- // the same declaration into it, and it being visible because its owning
- // module is visible.
- if (Def->getModuleOwnershipKind() == Decl::ModuleOwnershipKind::Visible &&
- getLangOpts().ModulesLocalVisibility)
- return true;
for (const Module *Merged : Context.getModulesWithMergedDefinition(Def))
if (isInCurrentModule(Merged, getLangOpts()))
return true;