Skip to content

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