Set EnableSerializePackage to false and update call sites.

Update doc comments.

rdar://124651962
This commit is contained in:
Ellie Shin
2024-03-15 13:27:54 -07:00
parent 3d4457b632
commit 6fc909837f
4 changed files with 13 additions and 4 deletions

View File

@@ -899,7 +899,9 @@ bool SILFunction::hasValidLinkageForFragileRef() const {
return false;
// Otherwise, only public or package functions can be referenced.
return hasPublicOrPackageVisibility(getLinkage(), getModule().getOptions().EnableSerializePackage);
// If it has a package linkage at this point, package CMO must
// have been enabled, so opt in for visibility.
return hasPublicOrPackageVisibility(getLinkage(), /*includePackage*/ true);
}
bool