Skip to content

[ownership] Refactor checked conversion from ArrayRef<SILInstruction *> -> ArrayRef<BranchPropagatedUser> onto BranchPropagatedUser. #29519

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

Conversation

gottesmm
Copy link
Contributor

A branch propagated user that isn't a cond_br is layout compatible with a
SILInstruction *. This helper function converts from ArrayRef<SILInstruction *>
-> ArrayRef but also in asserts builds checks that our
invariant (namely all of the 'SILInstruction *' are not cond_br.

@gottesmm
Copy link
Contributor Author

@swift-ci smoke test and merge

…*> -> ArrayRef<BranchPropagatedUser> onto BranchPropagatedUser.

A branch propagated user that isn't a cond_br is layout compatible with a
SILInstruction *. This helper function converts from ArrayRef<SILInstruction *>
-> ArrayRef<BranchPropagatedUser> but also in asserts builds checks that our
invariant (namely all of the 'SILInstruction *' are not cond_br.
@gottesmm gottesmm force-pushed the pr-a38b5f72b7fe7f2e4482b0456b6e1cb080ec9540 branch from 727e75f to 70a417c Compare February 2, 2020 19:54
@gottesmm
Copy link
Contributor Author

gottesmm commented Feb 2, 2020

@swift-ci smoke test and merge

@swift-ci swift-ci merged commit 13072cf into swiftlang:master Feb 2, 2020
@gottesmm gottesmm deleted the pr-a38b5f72b7fe7f2e4482b0456b6e1cb080ec9540 branch February 2, 2020 21:33
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