diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2015-03-27 20:16:58 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2015-03-27 20:16:58 +0000 |
commit | 9a71c99844972bb352067d00a4d35b848238fc9d (patch) | |
tree | 47177f641af524bc225e133ebd4ce9421bf7315b /clang/lib/Sema/SemaLookup.cpp | |
parent | 7b57cef5b088dd87b105c293cffb5745eea008a7 (diff) | |
download | bcm5719-llvm-9a71c99844972bb352067d00a4d35b848238fc9d.tar.gz bcm5719-llvm-9a71c99844972bb352067d00a4d35b848238fc9d.zip |
[modules] Allow a function to be redefined if the old definition is not visible.
llvm-svn: 233407
Diffstat (limited to 'clang/lib/Sema/SemaLookup.cpp')
-rw-r--r-- | clang/lib/Sema/SemaLookup.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/clang/lib/Sema/SemaLookup.cpp b/clang/lib/Sema/SemaLookup.cpp index ac7376efbc4..1244829f2ba 100644 --- a/clang/lib/Sema/SemaLookup.cpp +++ b/clang/lib/Sema/SemaLookup.cpp @@ -1226,8 +1226,7 @@ bool LookupResult::isVisibleSlow(Sema &SemaRef, NamedDecl *D) { DeclContext *DC = D->getLexicalDeclContext(); if (!D->isModulePrivate() && DC && !DC->isFileContext() && !isa<LinkageSpecDecl>(DC)) { - NamedDecl *Hidden; - if (SemaRef.hasVisibleDefinition(cast<NamedDecl>(DC), &Hidden)) { + if (SemaRef.hasVisibleDefinition(cast<NamedDecl>(DC))) { if (SemaRef.ActiveTemplateInstantiations.empty()) { // Cache the fact that this declaration is implicitly visible because // its parent has a visible definition. |