Skip to content

SILGen: Use [unsafe] access markers for move-only storage when exclusivity enforcement is disabled. #80619

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 8, 2025

Conversation

jckarter
Copy link
Contributor

@jckarter jckarter commented Apr 8, 2025

The move-only checker relies on access markers to understand access scopes, so eliding them entirely leads to miscompiles. We can emit begin_access [unsafe] to semantically delimit exclusivity scopes while still doing no runtime checking. Fixes rdar://147546262.

…ivity enforcement is disabled.

The move-only checker relies on access markers to understand access scopes, so eliding them
entirely leads to miscompiles. We can emit `begin_access [unsafe]` to semantically delimit
exclusivity scopes while still doing no runtime checking. Fixes rdar://147546262.
@jckarter jckarter requested a review from kavon as a code owner April 8, 2025 00:51
@jckarter
Copy link
Contributor Author

jckarter commented Apr 8, 2025

@swift-ci Please test

@jckarter jckarter merged commit cc5fa69 into swiftlang:main Apr 8, 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.

1 participant