Skip to content

LifetimeDependence: handle dependent values in throwing calls. #72777

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

Conversation

atrick
Copy link
Contributor

@atrick atrick commented Apr 2, 2024

Fixes rdar://125564278 (~Escapable: crash in LifetimeDependenceInsertion)

And make drop_deinit a ForwardingInstruction.
Fixes rdar://125590074 ([NonescapableTypes] Nonescapable types cannot have deinits)

@atrick atrick requested a review from meg-gupta April 2, 2024 18:46
@atrick atrick requested a review from eeckstein as a code owner April 2, 2024 18:46
@atrick
Copy link
Contributor Author

atrick commented Apr 2, 2024

@swift-ci test

Copy link
Contributor

@meg-gupta meg-gupta left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@atrick
Copy link
Contributor Author

atrick commented Apr 3, 2024

@swift-ci test

atrick added 4 commits April 3, 2024 10:46
Fixes rdar://125564278 (~Escapable: crash in LifetimeDependenceInsertion)
drop_deinit forwards ownership while effectively stripping the deinitializer. It is similar to a type cast.

Fixes rdar://125590074 ([NonescapableTypes] Nonescapable types
cannot have deinits)
@atrick atrick force-pushed the fix-lifedep-throw branch from 3762d5b to 581010d Compare April 4, 2024 01:53
@atrick
Copy link
Contributor Author

atrick commented Apr 4, 2024

@swift-ci test

@atrick
Copy link
Contributor Author

atrick commented Apr 4, 2024

@swift-ci benchmark

@atrick atrick merged commit 6aa07ff into swiftlang:main Apr 4, 2024
@atrick atrick deleted the fix-lifedep-throw branch April 4, 2024 15:06
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