Skip to content

SIL: Lower closure functions' captures in their own expansion context. #39624

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
Oct 8, 2021

Conversation

jckarter
Copy link
Contributor

@jckarter jckarter commented Oct 6, 2021

The capture arguments are a private contract between the closure and its
context, and will only ever be bound from the enclosing context, so
there's no need to obscure opaque underlying types (unless it's
serializable because it's in inlinable code, in which case we
continue to use the minimal type expansion context to account for
inlining as before.)

Fixes rdar://83378116.

The capture arguments are a private contract between the closure and its
context, and will only ever be bound from the enclosing context, so
there's no need to obscure opaque underlying types (unless it's
serializable because it's in inlinable code, in which case we
continue to use the minimal type expansion context to account for
inlining as before.)

Fixes rdar://83378116.
@jckarter
Copy link
Contributor Author

jckarter commented Oct 6, 2021

@swift-ci Please test

@jckarter
Copy link
Contributor Author

jckarter commented Oct 6, 2021

@swift-ci Please test source compatibility

1 similar comment
@jckarter
Copy link
Contributor Author

jckarter commented Oct 7, 2021

@swift-ci Please test source compatibility

@jckarter jckarter merged commit 3b061e6 into swiftlang:main Oct 8, 2021
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