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 | 16280f9d13d776349f9dacd3378e307d662f4769 (patch) | |
tree | 1da3e66d772c7bd2c6de87e18383451867121e8b /include/clang/AST | |
parent | 9ab24b50c19a33c6868f9dde7fce1dac915e6a6e (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.h | 2 |
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); } |