diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2017-07-05 01:42:07 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2017-07-05 01:42:07 +0000 |
commit | e03a65458135813f680420760c4a14a99c24995f (patch) | |
tree | fb9e14410e3f5d57c9ba3a73ea33e094391e6203 /clang/lib/AST/DeclBase.cpp | |
parent | b320ef9fab604326507e011bf04aab17dd84a7d6 (diff) | |
download | bcm5719-llvm-e03a65458135813f680420760c4a14a99c24995f.tar.gz bcm5719-llvm-e03a65458135813f680420760c4a14a99c24995f.zip |
[modules ts] Declarations from a module interface unit are only visible outside
the module if declared in an export block.
llvm-svn: 307115
Diffstat (limited to 'clang/lib/AST/DeclBase.cpp')
-rw-r--r-- | clang/lib/AST/DeclBase.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/AST/DeclBase.cpp b/clang/lib/AST/DeclBase.cpp index a0594a02036..842ae9b6cc8 100644 --- a/clang/lib/AST/DeclBase.cpp +++ b/clang/lib/AST/DeclBase.cpp @@ -283,7 +283,7 @@ void Decl::setLexicalDeclContext(DeclContext *DC) { setLocalOwningModule(cast<Decl>(DC)->getOwningModule()); } - assert((!hasOwningModule() || getOwningModule()) && + assert((!hasOwningModule() || getOwningModule() || isModulePrivate()) && "hidden declaration has no owning module"); } |