Skip to content

Commit cb7ea10

Browse files
committed
Support fileprivate access level to be usableFromInline.
This is needed for cross-module-optimization. So far only internal and private was supported.
1 parent dc5f896 commit cb7ea10

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/AST/Decl.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3115,7 +3115,7 @@ static AccessLevel getAdjustedFormalAccess(const ValueDecl *VD,
31153115
return getMaximallyOpenAccessFor(VD);
31163116

31173117
if (treatUsableFromInlineAsPublic &&
3118-
(access == AccessLevel::Internal || access == AccessLevel::Private) &&
3118+
access <= AccessLevel::Internal &&
31193119
VD->isUsableFromInline()) {
31203120
return AccessLevel::Public;
31213121
}

0 commit comments

Comments
 (0)