Skip to content

[move-only] Make sure that we convert copy_value/load [copy] move only to their after error variant if we error early. #62631

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

gottesmm
Copy link
Contributor

In sum, if we hit an early error that says that we found a situation that we don't know how to handle, we were not converting copy_value -> explicit_copy_value and load [copy] -> load_borrow + copy_value.

Discovered this issue while attempting to enable sil-verify-all on the move only tests. Once I enable that on the relevant tests, this will be tested by sil-verify-all not triggering. I have a few other things to fix before I can do that though.

@gottesmm gottesmm requested a review from kavon December 16, 2022 01:35
@gottesmm
Copy link
Contributor Author

@swift-ci smoke test

…y to their after error variant if we error early.

In sum, if we hit an early error that says that we found a situation that we
don't know how to handle, we were not converting copy_value ->
explicit_copy_value and load [copy] -> load_borrow + copy_value.

Discovered this issue while attempting to enable sil-verify-all on the move only
tests. Once I enable that on the relevant tests, this will be tested by
sil-verify-all not triggering. I have a few other things to fix before I can do
that though.
@gottesmm gottesmm force-pushed the pr-d0e166cdd030c3826f8abfc0081e61545623320f branch from 90b6bac to b80984c Compare December 16, 2022 01:38
@gottesmm
Copy link
Contributor Author

@swift-ci smoke test

@gottesmm gottesmm merged commit e709d94 into swiftlang:main Dec 16, 2022
@gottesmm gottesmm deleted the pr-d0e166cdd030c3826f8abfc0081e61545623320f branch December 16, 2022 16:06
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.

1 participant