Skip to content

[5.8][BuilderTransform] Rework missing buildWithLimitedAvailability detection #63807

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
merged 1 commit into from
Feb 23, 2023

Conversation

xedin
Copy link
Contributor

@xedin xedin commented Feb 21, 2023

Cherry-pick of #63768


  • Explanation:

Fixes a crash in diagnostic code that is trying to determine
whether buildWithLimitedAvailability should be added to
the result builder.

Since all of the branches of an if statement are joined
together and hence produce the same type, that type
should be used to check whether buildWithLimitedAvailability
is required but missing regardless of availability condition kind.

Resolves: rdar://105734854
Resolves: #63764 (cherry picked from commit c4ea02c)

Since all of the branches of an `if` statement are joined together
and hence produce the same type, that type should be used to
check whether `buildWithAvailability` is required but missing
regardless of availability condition kind.

Resolves: swiftlang#63764
(cherry picked from commit c4ea02c)
@xedin xedin added 🍒 release cherry pick Flag: Release branch cherry picks swift 5.8 labels Feb 21, 2023
@xedin xedin requested a review from a team as a code owner February 21, 2023 19:08
@xedin
Copy link
Contributor Author

xedin commented Feb 21, 2023

@swift-ci please test

@xedin
Copy link
Contributor Author

xedin commented Feb 21, 2023

@swift-ci please test macOS platform

@tkremenek tkremenek merged commit b9562e1 into swiftlang:release/5.8 Feb 23, 2023
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants