Skip to content

[6.0] LocalVariableUtils: add support for temporary enum initialization. #73025

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 2 commits into from
Apr 15, 2024

Conversation

atrick
Copy link
Contributor

@atrick atrick commented Apr 13, 2024

Fixes rdar://121612548 (🏅[nonescapable] Test a working ~Escapable Optional-like type)

(cherry picked from commit fc60925)

--- CCC ---

Explanation: LocalVariableUtils: add support for temporary enum initialization.

Scope: Required to build an conditionally ~Escapable Optional type.

Radar/SR Issues: rdar://121612548 (🏅[nonescapable] Test a working ~Escapable Optional-like type)

Original PR: #73015

Risk: This has zero effect on code that doesn't use the experimental feature.

Testing: A standalone implementation of stdlib Optional was added as a unit test.

Reviewer: @nate-chandler

@atrick atrick added 🍒 release cherry pick Flag: Release branch cherry picks swift 6.0 labels Apr 13, 2024
@atrick atrick requested review from lorentey and meg-gupta April 13, 2024 17:30
@atrick atrick requested a review from a team as a code owner April 13, 2024 17:30
@atrick
Copy link
Contributor Author

atrick commented Apr 13, 2024

@swift-ci test

atrick added 2 commits April 13, 2024 17:39
Fixes rdar://121612548 (🏅[nonescapable] Create a working ~Escapable Optional-like type)

(cherry picked from commit fc60925)
Fixes rdar://126415070 (Swift CI: macosx-arm64 -
SILOptimizer/lifetime_dependence_optional.swift - Many public bots)

(cherry picked from commit afc1670)
@atrick atrick force-pushed the 60-fix-enum-local branch from 301e0e8 to 1d5ef2b Compare April 14, 2024 00:43
@atrick
Copy link
Contributor Author

atrick commented Apr 14, 2024

@swift-ci test

@atrick atrick requested a review from nate-chandler April 14, 2024 16:35
@atrick atrick merged commit 59748d9 into swiftlang:release/6.0 Apr 15, 2024
@atrick atrick deleted the 60-fix-enum-local branch April 15, 2024 16:52
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.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants