Skip to content

SILGen: Correct ownership forwarding of Builtin.emplace. #80507

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
Apr 4, 2025

Conversation

jckarter
Copy link
Contributor

@jckarter jckarter commented Apr 3, 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.

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 3, 2025

@swift-ci Please test

@jckarter
Copy link
Contributor Author

jckarter commented Apr 4, 2025

@swift-ci Please test macOS

@jckarter jckarter merged commit e75ee3f into swiftlang:main Apr 4, 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.

1 participant