Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PackageCMO: fix serializability check for keypath #78732

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

elsh
Copy link
Contributor

@elsh elsh commented Jan 18, 2025

When a keypath instruction was checked for serializability, its referenced function was
sometimes incorrectly deemed serializable when its referenced method had package or
public access level. This resulted in incorrectly serializing a function that dynamically
accesses a property on a generic type using key path. This PR fixes the issue by skipping
the access level check if the referenced function is determined to be un-serializable.

Resolves rdar://142950306

@elsh elsh requested a review from eeckstein as a code owner January 18, 2025 02:14
@elsh
Copy link
Contributor Author

elsh commented Jan 18, 2025

@swift-ci smoke test

@elsh elsh force-pushed the elsh/pcmo-keypath-fix branch from 54b7b76 to 8cd8e5b Compare January 18, 2025 15:25
@elsh
Copy link
Contributor Author

elsh commented Jan 18, 2025

@swift-ci smoke test

When a keypath instruction was checked for serializability, its referenced function was
sometimes incorrectly deemed serializable when its referenced method had package or
public access level. This resulted in incorrectly serializing a function that dynamically
accesses a property on a generic type using key path. This PR fixes the issue by skipping
the access level check if the referenced function is determined to be un-serializable.

Resolves rdar://142950306
@elsh elsh force-pushed the elsh/pcmo-keypath-fix branch from b35b7e6 to 83f1ff6 Compare January 20, 2025 07:53
@elsh
Copy link
Contributor Author

elsh commented Jan 20, 2025

@swift-ci smoke test

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants