Skip to content

[ClosureSpecializer] Bail on noncopyable argument. #74309

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 5 commits into from
Jun 12, 2024

Conversation

nate-chandler
Copy link
Contributor

The optimization currently always creates a retain of the argument. This isn't legal for noncopyable values.

rdar://129622373

@nate-chandler nate-chandler requested a review from atrick June 11, 2024 21:46
The optimization currently always creates a retain of the argument.
This isn't legal for noncopyable values.

rdar://129622373
@nate-chandler
Copy link
Contributor Author

@swift-ci please test

@nate-chandler
Copy link
Contributor Author

@swift-ci please test source compatibility

@nate-chandler
Copy link
Contributor Author

@swift-ci please apple silicon benchmark

Copy link
Contributor

@atrick atrick left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

@nate-chandler nate-chandler merged commit 43ce060 into swiftlang:main Jun 12, 2024
8 checks passed
@nate-chandler nate-chandler deleted the rdar129622373 branch June 12, 2024 04:24
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