Skip to content

IRGen: Make copying value witnesses trap for noncopyable types. #64194

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
merged 1 commit into from
Mar 8, 2023

Conversation

jckarter
Copy link
Contributor

@jckarter jckarter commented Mar 8, 2023

It shouldn't normally be possible to invoke them, but if someone does dynamically grab metadata for a noncopyable type and try to use it to copy a value that can't be copied, they must be stopped.

It shouldn't normally be possible to invoke them, but if someone does
dynamically grab metadata for a noncopyable type and try to use it to copy
a value that can't be copied, they must be stopped.
@jckarter
Copy link
Contributor Author

jckarter commented Mar 8, 2023

@swift-ci Please test

@jckarter jckarter merged commit 56f8e54 into swiftlang:main Mar 8, 2023
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