Skip to content

[6.2] SILGen: Emit copy x on a trivial value as a trivial copy. #80774

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
Apr 14, 2025

Conversation

jckarter
Copy link
Contributor

Avoids an assertion failure emitting an explicit_copy_value on the trivial value, which is unsupported. This allows copy x to compile, albeit with no effect (which is not ideal, but also not a regression, since no-implicit-copy controls still don't fully work on trivial values). Fixes #80573 and rdar://148712387.

PR for main: #80773

@jckarter jckarter requested a review from a team as a code owner April 11, 2025 19:33
@jckarter
Copy link
Contributor Author

@swift-ci Please test

Avoids an assertion failure emitting an `explicit_copy_value` on the trivial
value, which is unsupported. This allows `copy x` to compile, albeit with
no effect (which is not ideal, but also not a regression, since no-implicit-copy
controls still don't fully work on trivial values). Fixes swiftlang#80573 and rdar://148712387.
@jckarter jckarter force-pushed the trivial-copy-operator-6.2 branch from c0f17ba to ae09d4d Compare April 12, 2025 00:52
@jckarter
Copy link
Contributor Author

@swift-ci Please test

@jckarter jckarter merged commit 7f24773 into swiftlang:release/6.2 Apr 14, 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.

3 participants