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

[6.2] SILGen: Correct ownership forwarding of Builtin.emplace. #80542

Merged

Conversation

jckarter
Copy link
Contributor

@jckarter jckarter commented Apr 4, 2025

Forward the owning cleanup for the temporary buffer (if needed) instead of creating a new cleanup, to avoid a double-free when both the initialization cleanup and the value cleanup execute. Fixes rdar://147961840.

PR for main: #80507

Forward the owning cleanup for the temporary buffer (if needed) instead of
creating a new cleanup, to avoid a double-free when both the initialization
cleanup and the value cleanup execute. Fixes rdar://147961840.
@jckarter
Copy link
Contributor Author

jckarter commented Apr 4, 2025

@swift-ci Please test

@jckarter
Copy link
Contributor Author

jckarter commented Apr 4, 2025

@swift-ci Please test

@jckarter jckarter merged commit 155a1d7 into swiftlang:release/6.2 Apr 7, 2025
5 checks passed
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