Skip to content

[6.1] Look through borrowed from instructions before calling lifetime completion #78255

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
Dec 20, 2024

Conversation

meg-gupta
Copy link
Contributor

Explanation: Lifetime completion will insert end_borrows only on borrow introducers. Look through "borrowed from" instructions before calling it to complete lifetimes.
Scope: This fixes ownership verification error in DCE.
Original PR: #78200
Risk: Low
Testing: Swift CI testing
Reviewed by: @nate-chandler
Issue: rdar://141490551

@meg-gupta
Copy link
Contributor Author

@swift-ci test

…etion

Lifetime completion will insert end_borrows only on borrow introducers.

Look through "borrowed from" instructions before calling it.

rdar://141490551
@meg-gupta meg-gupta marked this pull request as ready for review December 19, 2024 19:00
@meg-gupta meg-gupta requested a review from a team as a code owner December 19, 2024 19:00
@meg-gupta meg-gupta enabled auto-merge December 19, 2024 19:04
@meg-gupta meg-gupta merged commit ca8536d into swiftlang:release/6.1 Dec 20, 2024
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