Skip to content

[sil] Add a new attribute called @closureCaptured to SILFunctionArguments that are closure capture arguments. #62592

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

gottesmm
Copy link
Contributor

I am adding this to make it easy to determine if a SILFunction that is not inout aliasable is captured. This is useful when emitting certain types of diagnostics like I need to emit with move only.

…ents that are closure capture arguments.

I am adding this to make it easy to determine if a SILFunction that is not inout
aliasable is captured. This is useful when emitting certain types of
diagnostics like I need to emit with move only.
@gottesmm gottesmm requested a review from kavon December 14, 2022 23:17
@gottesmm
Copy link
Contributor Author

@swift-ci test

@gottesmm gottesmm merged commit 6fff307 into swiftlang:main Dec 15, 2022
@gottesmm gottesmm deleted the pr-cbfd912fd4d58ff272d3f1fe4ceb8cf02589da9a branch December 15, 2022 09:15
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