Skip to content

Commit 45cf9ac

Browse files
committed
[PackageCMO] Add back missing change for package scope in table entry visibility check
rdar://130222362
1 parent f6cfa08 commit 45cf9ac

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/AST/Decl.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4681,6 +4681,8 @@ bool ValueDecl::isMoreVisibleThan(ValueDecl *other) const {
46814681

46824682
if (scope.isPublic())
46834683
return !otherScope.isPublic();
4684+
else if (scope.isPackage())
4685+
return !otherScope.isPublicOrPackage();
46844686
else if (scope.isInternal())
46854687
return !otherScope.isPublic() && !otherScope.isInternal();
46864688
else

0 commit comments

Comments
 (0)