summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2015-07-01 19:32:54 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2015-07-01 19:32:54 +0000
commit5327b8900122dc753d570ab37c156c2fbcef46d8 (patch)
tree748e3c3120d106d20fdc89fe90a955e99cbcbd9e /clang/lib/AST
parent5673eef85ac4344421f3ea9fa43f3edb219ac289 (diff)
downloadbcm5719-llvm-5327b8900122dc753d570ab37c156c2fbcef46d8.tar.gz
bcm5719-llvm-5327b8900122dc753d570ab37c156c2fbcef46d8.zip
[modules] Don't make out-of-line member specializations of an instantiated
class template specialization visible just because the class template specialization's definition is visible. llvm-svn: 241182
Diffstat (limited to 'clang/lib/AST')
-rw-r--r--clang/lib/AST/DeclBase.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/AST/DeclBase.cpp b/clang/lib/AST/DeclBase.cpp
index 70bd16ffdd5..d20451d1bad 100644
--- a/clang/lib/AST/DeclBase.cpp
+++ b/clang/lib/AST/DeclBase.cpp
@@ -236,6 +236,7 @@ void Decl::setLexicalDeclContext(DeclContext *DC) {
} else {
getMultipleDC()->LexicalDC = DC;
}
+ Hidden = cast<Decl>(DC)->Hidden;
}
void Decl::setDeclContextsImpl(DeclContext *SemaDC, DeclContext *LexicalDC,
OpenPOWER on IntegriCloud