Skip to content

Commit 00bed22

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

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
@@ -4589,6 +4589,8 @@ bool ValueDecl::isMoreVisibleThan(ValueDecl *other) const {
45894589

45904590
if (scope.isPublic())
45914591
return !otherScope.isPublic();
4592+
else if (scope.isPackage())
4593+
return !otherScope.isPublicOrPackage();
45924594
else if (scope.isInternal())
45934595
return !otherScope.isPublic() && !otherScope.isInternal();
45944596
else

0 commit comments

Comments
 (0)