Skip to content

Fix two problems in the copy-to-borrow optimization #78543

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 2 commits into from
Jan 10, 2025

Conversation

eeckstein
Copy link
Contributor

  • fix insertion order of end_borrows

In liferange exit blocks the end_borrows were inserted in the wrong order.

rdar://142632741

  • correctly handle unchecked_enum_data

A unchecked_enum_data which extracts a trivial payload out of a non-trivial enum ends the lifetime of its owned operand.

rdar://142644731

In liferange exit blocks the end_borrows were inserted in the wrong order.

Fixes an ownership verification error
rdar://142632741
A `unchecked_enum_data` which extracts a trivial payload out of a non-trivial enum ends the lifetime of its owned operand.

Fixes an ownership verification error
rdar://142644731
@eeckstein
Copy link
Contributor Author

@swift-ci test

Copy link
Contributor

@nate-chandler nate-chandler left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@eeckstein eeckstein merged commit 8ec8a12 into swiftlang:main Jan 10, 2025
5 checks passed
@eeckstein eeckstein deleted the fix-copy-to-borrow-optimization branch January 10, 2025 18:44
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