Skip to content
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

Fix insertion of dealloc_stack for partial_apply [on_stack] while going to non-OSSA #65780

Merged
merged 1 commit into from
May 9, 2023

Conversation

meg-gupta
Copy link
Contributor

Instead of just inserting dealloc_stack on seeing a destroy_value for no escape closures. Go over all the lifetime ends of a partial_apply [on_stack] to insert dealloc_stack. This ensures we don't miss cases where there is no destroying consuming of the no escape closures.

@meg-gupta meg-gupta requested a review from jckarter May 8, 2023 22:56
@meg-gupta
Copy link
Contributor Author

@swift-ci test

@meg-gupta meg-gupta requested a review from atrick May 8, 2023 22:56
@meg-gupta
Copy link
Contributor Author

@swift-ci test

@meg-gupta
Copy link
Contributor Author

@swift-ci test linux platform

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. Minor comment suggestion.

…ng to non-OSSA

Instead of just inserting dealloc_stack on seeing a destroy_value for no escape closures.
Go over all the lifetime ends of a partial_apply [on_stack] to insert dealloc_stack
This ensures we don't miss cases where there is no destroying consuming of the no escape closures.
@meg-gupta
Copy link
Contributor Author

@swift-ci smoke test and merge

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.

None yet

3 participants