Skip to content

LetPropertyLowering: handle store_borrow and re-borrows #70039

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 4 commits into from
Nov 28, 2023

Conversation

eeckstein
Copy link
Contributor

Handling of re-borrows is only done for completeness. Currently they don't occur for root-selfs at this stage in SIL.

Fixes an ownership verifier error

rdar://118832838

…truction`

`BorrowIntroducingInstruction` is a protocol to which all instructions conform which start a borrow-scope which must be ended by `EndBorrowInst` instructions: `begin_borrow`, `load_borrow` and `store_borrow`
…)` utility

Adds the instruction range of a borrow-scope by transitively visiting all (potential) re-borrows.
Handling of re-borrows is only done for completeness. Currently they don't occur for root-selfs at this stage in SIL.
Using this API almost certainly indicates a bug, because it neglects re-borrows.
@eeckstein
Copy link
Contributor Author

@swift-ci test

@eeckstein eeckstein merged commit b90b326 into swiftlang:main Nov 28, 2023
@eeckstein eeckstein deleted the fix-let-property-lowering branch November 28, 2023 06:00
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