summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST/DeclBase.cpp
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2017-07-05 01:42:07 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2017-07-05 01:42:07 +0000
commite03a65458135813f680420760c4a14a99c24995f (patch)
treefb9e14410e3f5d57c9ba3a73ea33e094391e6203 /clang/lib/AST/DeclBase.cpp
parentb320ef9fab604326507e011bf04aab17dd84a7d6 (diff)
downloadbcm5719-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.cpp2
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");
}
OpenPOWER on IntegriCloud