Skip to content

Fix ClosureLifetimeFixup to insert destroys at leaking blocks #80031

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
Mar 18, 2025

Conversation

meg-gupta
Copy link
Contributor

tryExtendLifetimeToLastUse creates a destroy_value after the closure's user. But closure's user may not be post dominating the copy_value created previously in the utility. Insert destroy_value at leaking blocks.

rdar://146679003

@meg-gupta
Copy link
Contributor Author

@swift-ci test

1 similar comment
@meg-gupta
Copy link
Contributor Author

@swift-ci test

@meg-gupta meg-gupta marked this pull request as ready for review March 17, 2025 17:51
@meg-gupta meg-gupta requested a review from eeckstein as a code owner March 17, 2025 17:51
@meg-gupta meg-gupta merged commit 30a364d into swiftlang:main Mar 18, 2025
5 checks passed
Copy link
Contributor

@atrick atrick left a comment

Choose a reason for hiding this comment

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

LGTM

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