Skip to content

Conversation

atrick
Copy link
Contributor

@atrick atrick commented Oct 7, 2025

  • SwiftCompilerSources: bridge Type.unsafePointerElementType

  • SwiftCompilerSources: bridge Function.isAddressor()

  • LifetimeDependenceDefUseWalker: store to unsafeMutableAddress
    Handle storing to a mutable property implemented as unsafeMutableAddress. In
    SIL, the stored address comes from pointer_to_address. Recognize the addressor
    pattern and handle the store as if it writes to a regular property of 'self'.

    Required for UnsafePointer<~Escapable>.pointee.

Unit tests are PR: #84233

@atrick
Copy link
Contributor Author

atrick commented Oct 7, 2025

@swift-ci test

@atrick atrick force-pushed the lifedep-unsafeaddress branch from 83386ca to f2c1a91 Compare October 7, 2025 19:28
Handle storing to a mutable property implemented as unsafeMutableAddress. In
SIL, the stored address comes from pointer_to_address. Recognize the addressor
pattern and handle the store as if it writes to a regular property of 'self'.

Required for UnsafePointer<~Escapable>.pointee.
@atrick atrick force-pushed the lifedep-unsafeaddress branch from f2c1a91 to 4378995 Compare October 7, 2025 22:35
@atrick
Copy link
Contributor Author

atrick commented Oct 7, 2025

@swift-ci test

@atrick
Copy link
Contributor Author

atrick commented Oct 8, 2025

@swift-ci smoke test macOS

@atrick atrick merged commit d653b0c into swiftlang:main Oct 10, 2025
4 of 5 checks passed
@atrick atrick deleted the lifedep-unsafeaddress branch October 10, 2025 01:42
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