Skip to content

[move-only] Add support for move only empty structs and fix a SILGen issue around their initializers. #65130

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

This PR contains two commits.

First:

[move-only] Treat empty structs as if they have a single element.

rdar://104395115

Second.

[move-only] When emitting an initializer for an empty struct, store an instance to make sure it is initialized.

I ran into this while fixing the parent commit when attempting to add the
interpreter test in this commit into the aforementioned parent commit.

rdar://107974302

…n instance to make sure it is initialized.

I ran into this while fixing the parent commit when attempting to add the
interpreter test in this commit into the aforementioned parent commit.

rdar://107974302
@gottesmm
Copy link
Contributor Author

@swift-ci test

@gottesmm gottesmm merged commit ab59958 into swiftlang:main Apr 13, 2023
@gottesmm gottesmm deleted the pr-56cbe3c44dba95e1fd7880b174205c541e11c01d branch April 13, 2023 14:07
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