Skip to content

Fix ClosureSpecialize. Don't insert releases in readonly functions. #64305

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 13, 2023

Conversation

atrick
Copy link
Contributor

@atrick atrick commented Mar 12, 2023

For now, disable specialization when it would result in adding releases to readnone, readonly, or releasenone functions.

Fixes rdar://105887096

TODO: A @NoEscape closure should never be converted to an @owned argument regardless of the function attribute.

For now, disable specialization when it would result in adding
releases to readnone, readonly, or releasenone functions.

Fixes rdar://105887096

TODO: A @NoEscape closure should never be converted to an @owned
argument regardless of the function attribute.
@atrick
Copy link
Contributor Author

atrick commented Mar 12, 2023

@swift-ci test

@atrick
Copy link
Contributor Author

atrick commented Mar 12, 2023

@swift-ci benchmark

@atrick atrick merged commit 4f74cbb into swiftlang:main Mar 13, 2023
@atrick atrick deleted the fix-closure-specialize branch March 13, 2023 00:33
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