Skip to content

[5.9] IRGen: Assorted -unavailable-decl-optimization fixes #66225

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

Merged

Conversation

tshortli
Copy link
Contributor

@tshortli tshortli commented May 30, 2023

@tshortli tshortli added 🍒 release cherry pick Flag: Release branch cherry picks swift 5.9 labels May 30, 2023
tshortli added 4 commits June 1, 2023 09:00
When `-unavailable-decl-optimization=complete` is specified, exclude
unavailable enum cases from the runtime layout of enums with payloads. Without
this, the type metadata for unavailable types may be referenced by enum cases
with unavailable payloads and cause linker failures.

Resolves rdar://107483852
When `-unavailable-decl-optimization=complete` is specified, skip emission of
resilient tag indices for enum cases that are marked unavailable with
`@available`.

Resolves rdar://109805050
…ilability().

Unfortunately, I don't have reduced reproduction for the crash that motivated
this fix, but similar precautions are taken elsewhere when handling
PatternBindingDecls.
@tshortli tshortli force-pushed the unavailability-cherry-picks-5.9 branch from efcc04a to e5d1471 Compare June 1, 2023 16:01
@tshortli
Copy link
Contributor Author

tshortli commented Jun 1, 2023

@swift-ci please test

@tshortli tshortli changed the title [5.9] Assorted -unavailable-decl-optimization fixes [5.9] IRGen: Assorted -unavailable-decl-optimization fixes Jun 1, 2023
@tshortli tshortli requested a review from nkcsgexi June 1, 2023 16:44
@tshortli tshortli marked this pull request as ready for review June 1, 2023 18:37
@tshortli tshortli requested a review from a team as a code owner June 1, 2023 18:37
@tshortli tshortli merged commit 0cadf31 into swiftlang:release/5.9 Jun 1, 2023
@tshortli tshortli deleted the unavailability-cherry-picks-5.9 branch June 1, 2023 23:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🍒 release cherry pick Flag: Release branch cherry picks swift 5.9
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants