Skip to content

[6.2] Fix InstructionDeleter for drop_deinit instruction #81512

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
May 15, 2025

Conversation

meg-gupta
Copy link
Contributor

@meg-gupta meg-gupta commented May 14, 2025

Explanation: Currently we delete dead drop_deinit instructions in InstructionDeleter. For address results, we may end up with ownership errors after being promoted to value forms. For value results, fixLifetimes mode of InstructionDeleter will insert an illegal destroy_value

Main PR: #81499

Scope: NonCopyable types with deinit

Reviewer: @eeckstein

Risk: Low

Issue: rdar://151104993 and #81434

Currently we delete dead drop_deinit instructions in InstructionDeleter. For address results, we may end up with ownership errors after being promoted to value forms. For value results, fixLifetimes mode of InstructionDeleter will insert an illegal destroy_value

rdar://151104993
@meg-gupta meg-gupta requested a review from a team as a code owner May 14, 2025 17:52
@meg-gupta meg-gupta requested a review from tbkka May 14, 2025 17:52
@meg-gupta
Copy link
Contributor Author

@swift-ci test

@meg-gupta meg-gupta enabled auto-merge May 14, 2025 17:53
@meg-gupta meg-gupta merged commit 4fbee45 into swiftlang:release/6.2 May 15, 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