From 00bed22554059c5bad6cf7d3b3ecaab3c0a838a8 Mon Sep 17 00:00:00 2001 From: Ellie Shin Date: Thu, 20 Jun 2024 12:11:18 -0700 Subject: [PATCH] [PackageCMO] Add back missing change for package scope in table entry visibility check rdar://130222362 --- lib/AST/Decl.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/AST/Decl.cpp b/lib/AST/Decl.cpp index c59e8d0008c1a..8c5b0d11b76ac 100644 --- a/lib/AST/Decl.cpp +++ b/lib/AST/Decl.cpp @@ -4589,6 +4589,8 @@ bool ValueDecl::isMoreVisibleThan(ValueDecl *other) const { if (scope.isPublic()) return !otherScope.isPublic(); + else if (scope.isPackage()) + return !otherScope.isPublicOrPackage(); else if (scope.isInternal()) return !otherScope.isPublic() && !otherScope.isInternal(); else