Skip to content

Add tests for SILGen support of @_addressable annotations. #81856

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

atrick
Copy link
Contributor

@atrick atrick commented May 30, 2025

  • Add tests for SILGen support of @_addressable annotations.
    Motivates: rdar://152280207 (@_addressable annotations should support
    address projections into copyable types)

atrick added 2 commits May 29, 2025 10:27
This mostly makes it easier to test dependency corner cases. The analysis still
doesn't recognize UnsafeRawPointer.init(), so regular users still need to use
_overrideLifetime.

Fixes rdar://137608270 ([borrows] Add Builtin.addressof() support
for @Addressable arguments)
Motivates: rdar://152280207 (@_addressable annotations should support
address projections into copyable types)
@atrick atrick requested a review from eeckstein as a code owner May 30, 2025 00:25
@atrick atrick requested review from jckarter and Xazax-hun May 30, 2025 00:31
@atrick
Copy link
Contributor Author

atrick commented Jun 5, 2025

@swift-ci test

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