Skip to content

Conversation

jckarter
Copy link
Contributor

@jckarter jckarter commented Sep 9, 2025

After #83959, we expect noncopyable OpenExistential evaluations to have an outer FormalEvaluationScope to forward to. However, there was no such FormalEvaluationScope while emitting a consuming switch subject, causing an assertion failure to trip. Add a FormalEvaluationScope tightly scoped around the evaluation in this case, fixing rdar://160080337.

…ncopyable switch subjects.

After swiftlang#83959, we expect noncopyable OpenExistential evaluations to have an outer
FormalEvaluationScope to forward to. However, there was no such
FormalEvaluationScope while emitting a consuming switch subject, causing an assertion
failure to trip. Add a FormalEvaluationScope tightly scoped around the evaluation in
this case, fixing rdar://160080337.
@jckarter jckarter requested a review from kavon as a code owner September 9, 2025 23:09
@jckarter
Copy link
Contributor Author

jckarter commented Sep 9, 2025

@swift-ci Please test

@jckarter jckarter merged commit 7a0ab9d into swiftlang:main Sep 10, 2025
5 checks passed
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