Skip to content

6.0: [SILGen] Load trivial in consuming switch. #72520

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

Conversation

nate-chandler
Copy link
Contributor

Explanation: Fix a compiler crash by handling trivial case in consuming switch.
Scope: Affects move-only code emission.
Issue: rdar://125182396
Original PR: #72494
Risk: Low.
Testing: Added test case that previously resulted in a crash.
Reviewer: Joe Groff ( @jckarter )

When emitting a consuming switch, the load of a trivial payload must be
trivial.

rdar://125182396
@nate-chandler nate-chandler requested a review from a team as a code owner March 22, 2024 14:46
@nate-chandler
Copy link
Contributor Author

@swift-ci please test

@nate-chandler nate-chandler merged commit c1f20b0 into swiftlang:release/6.0 Mar 22, 2024
@nate-chandler nate-chandler deleted the cherrypick/release/6.0/rdar125182396 branch March 22, 2024 20:21
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