Skip to content

[6.2 🍒] Fix ownership issues with sequences of partial_apply's in AutoDiff closure specialization pass #81240

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

clackary
Copy link

@clackary clackary commented May 1, 2025

Fix ownership issues with sequences of partial_apply's in AutoDiff closure specialization pass (swiftlang#80662)

Each partial_apply consumes its arguments, therefore we should never release intermediate ones in the sequence of closures.

Fixes swiftlang#78847

(cherry picked from commit 87ca0f8)
@clackary clackary requested a review from a team as a code owner May 1, 2025 21:02
@clackary
Copy link
Author

clackary commented May 1, 2025

@swift-ci please test

@clackary clackary merged commit f3380ef into swiftlang:release/6.2 May 2, 2025
5 checks passed
@clackary clackary deleted the cherrypick/ossa-partial-apply-80662 branch May 2, 2025 19:20
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.

3 participants