summaryrefslogtreecommitdiffstats
path: root/include/clang/AST
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
commit16280f9d13d776349f9dacd3378e307d662f4769 (patch)
tree1da3e66d772c7bd2c6de87e18383451867121e8b /include/clang/AST
parent9ab24b50c19a33c6868f9dde7fce1dac915e6a6e (diff)
[modules ts] Declarations from a module interface unit are only visible outside
the module if declared in an export block. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@307115 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/AST')
-rw-r--r--include/clang/AST/DeclBase.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/clang/AST/DeclBase.h b/include/clang/AST/DeclBase.h
index 0f1f481ae4..8658d886a9 100644
--- a/include/clang/AST/DeclBase.h
+++ b/include/clang/AST/DeclBase.h
@@ -749,7 +749,7 @@ public:
/// Set that this declaration is globally visible, even if it came from a
/// module that is not visible.
void setVisibleDespiteOwningModule() {
- if (hasOwningModule())
+ if (getModuleOwnershipKind() == ModuleOwnershipKind::VisibleWhenImported)
setModuleOwnershipKind(ModuleOwnershipKind::Visible);
}