From 45cf9ac2c6bbd5a15a5d6d6bcb924a7ef7ac1918 Mon Sep 17 00:00:00 2001 From: Ellie Shin Date: Thu, 20 Jun 2024 12:05:26 -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 db6550feef5b2..2df3ac42c778e 100644 --- a/lib/AST/Decl.cpp +++ b/lib/AST/Decl.cpp @@ -4681,6 +4681,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