Skip to content

[CSClosure] Fix crash in fallthrough statement checking #59059

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
May 25, 2022

Conversation

xedin
Copy link
Contributor

@xedin xedin commented May 24, 2022

fallthrough requires both source and destination case
"preambles" be type-checked before it could be validated,
which means that solution application for case statements
in a switch has to be split in two - preamble first and
bodies afterwards.

Resolves: #59035
Resolves: rdar://93796211

`fallthrough` requires both source and destination `case`
"preambles" be type-checked before it could be validated,
which means that solution application for `case` statements
in a `switch` has to be split in two - preamble first and
bodies afterwards.

Resolves: swiftlang#59035
Resolves: rdar://93796211
@xedin xedin requested a review from hborla May 24, 2022 21:24
@xedin
Copy link
Contributor Author

xedin commented May 25, 2022

@swift-ci please test

@xedin
Copy link
Contributor Author

xedin commented May 25, 2022

@swift-ci please test source compatibility

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.

UNREACHABLE executed at /home/build-user/swift/lib/Sema/CSGen.cpp:2956
2 participants