Skip to content

Fix IRGen for @_addressable params which may be "captured". #80708

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

Conversation

atrick
Copy link
Contributor

@atrick atrick commented Apr 10, 2025

Simply omit the 'nocapture' attribute on the parameter.

Fixes rdar://148039510 ([nonescapable] IRGen: lower addressable
params to LLVM: captures(ret: address, provenance))

@atrick
Copy link
Contributor Author

atrick commented Apr 10, 2025

@swift-ci test

Simply omit the 'nocapture' attribute on the parameter.

Fixes rdar://148039510 ([nonescapable] IRGen: lower addressable
params to LLVM: captures(ret: address, provenance))
@atrick atrick force-pushed the irgen-addressable branch from e40a34d to 2d9df8f Compare April 10, 2025 16:40
@atrick
Copy link
Contributor Author

atrick commented Apr 10, 2025

@swift-ci smoke test

@atrick atrick enabled auto-merge April 10, 2025 16:41
@atrick atrick merged commit 21480b8 into swiftlang:main Apr 10, 2025
3 checks passed
@atrick atrick deleted the irgen-addressable branch April 10, 2025 21:44
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