Skip to content

[6.2] LifetimeDependenceScopeFixup: handle returning dependent Optional #80980

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

Conversation

atrick
Copy link
Contributor

@atrick atrick commented Apr 22, 2025

Add support for returnValue phis (e.g. to return an Optional .some or .none).

Fixes rdar://149397018 (Wrapping non escapable in an Optional
(or any copy lifetime wrapper) is an escape)

(cherry picked from commit a1aaed9)

main PR: #80979

Add support for returnValue phis (e.g. to return an Optional .some or .none).

Fixes rdar://149397018 (Wrapping non escapable in an Optional
(or any copy lifetime wrapper) is an escape)

(cherry picked from commit a1aaed9)
@atrick atrick requested a review from a team as a code owner April 22, 2025 05:58
@atrick atrick added 🍒 release cherry pick Flag: Release branch cherry picks swift 6.2 labels Apr 22, 2025
@atrick
Copy link
Contributor Author

atrick commented Apr 22, 2025

@swift-ci test

@atrick atrick changed the title LifetimeDependenceScopeFixup: handle returning dependent Optional [6.2] LifetimeDependenceScopeFixup: handle returning dependent Optional Apr 22, 2025
@atrick atrick requested a review from tbkka April 22, 2025 06:09
@atrick atrick merged commit 7df225e into swiftlang:release/6.2 Apr 22, 2025
5 checks passed
@atrick atrick deleted the 62-rdar149397018-optional-return branch April 22, 2025 19:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🍒 release cherry pick Flag: Release branch cherry picks swift 6.2
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants