Skip to content

CapturePropagation: handle existential keypaths #79816

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
Mar 7, 2025

Conversation

eeckstein
Copy link
Contributor

Handle open_existential_ref instructions which cast keypath instructions before they are passed to a partial_apply. In Swift language mode 6 keypaths are existentials (e.g. any WritableKeyPath<Str, Int> & Sendable) and we need to deal with that in CapturePropagation.

rdar://141370412

This is a follow-up of #78160

Handle open_existential_ref instructions which cast keypath instructions before they are passed to a partial_apply.
In Swift language mode 6 keypaths are existentials (e.g. `any WritableKeyPath<Str, Int> & Sendable`) and we need to deal with that in CapturePropagation.

rdar://141370412
@eeckstein
Copy link
Contributor Author

@swift-ci test

@eeckstein
Copy link
Contributor Author

@swift-ci benchmark

@eeckstein
Copy link
Contributor Author

@swift-ci test

@eeckstein eeckstein merged commit 7cab35b into swiftlang:main Mar 7, 2025
5 of 6 checks passed
@eeckstein eeckstein deleted the keypath-in-capture-propagation branch March 7, 2025 19:38
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