Skip to content

SILGen: Emit empty type initialization for conditionally-copyable type inits. #72464

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

jckarter
Copy link
Contributor

Fix the check here to go by isMoveOnly on the lowered type rather than canBeCopyable on the declaration so that we correctly emit the semantic initialization for types that are ~Copyable in their most generic form. Fixes rdar://125101955.

@jckarter
Copy link
Contributor Author

@swift-ci Please test

…e inits.

Fix the check here to go by `isMoveOnly` on the lowered type rather than
`canBeCopyable` on the declaration so that we correctly emit the
semantic initialization for types that are `~Copyable` in their most
generic form. Fixes rdar://125101955.
@jckarter jckarter force-pushed the init-conditionally-copyable-empty-type branch from 396b6d1 to d9bd92e Compare March 20, 2024 21:14
@jckarter
Copy link
Contributor Author

@swift-ci Please test

@jckarter
Copy link
Contributor Author

@swift-ci Please smoke test Linux

@jckarter jckarter merged commit f5128d5 into swiftlang:main Mar 21, 2024
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