Skip to content

[OwnershipUtils] NFC: Two small cleanups. #67219

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

Conversation

nate-chandler
Copy link
Contributor

Factored getLocalScopeEndingInstructions through visitLocalScopeEndingUses and deleted a dead declaration.

The only difference between visitLocalScopeEndingUses and
getLocalScopeEndingInstructions is that the former evaluates a lambda
with each `Operand *` and the latter adds `->getUser()` to a
SmallVectorImpl for each.  So factor the latter through the former and
add the users to the SmallVectorImpl in the lambda.
The two implementations of findPointerEscape were merged back in
swiftlang#66723, so delete the declaration.
@nate-chandler
Copy link
Contributor Author

@swift-ci please test and merge

@swift-ci swift-ci merged commit 089df84 into swiftlang:main Jul 11, 2023
@nate-chandler nate-chandler deleted the nfc/20230711/1/ownership-utils-cleanups branch September 26, 2023 22: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.

2 participants