Skip to content

5.9: [SILGen] Consuming a param implies it's eager-move. #65379

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

nate-chandler
Copy link
Contributor

Cherry-pick of #65377 .

If a parameter is marked consuming and its type is Copyable, that parameter has eager-move semantics. Apply that attribute to the SILFunctionArgument corresponding to the parameter.

rdar://108385761

If a parameter is marked consuming and its type is Copyable, that
parameter has eager-move semantics.  Apply that attribute to the
SILFunctionArgument corresponding to the parameter.

rdar://108385761
@nate-chandler nate-chandler requested a review from a team as a code owner April 22, 2023 16:03
@nate-chandler
Copy link
Contributor Author

@swift-ci please test

The test/SILGen/consuming_parameter.swift already had its FileCheck
lines updated for its consuming parameters to be eager-move when String
was made eager-move on main.  Apply the same change here now that
consuming parameters are eager-move.
@nate-chandler
Copy link
Contributor Author

@swift-ci please test

@nate-chandler
Copy link
Contributor Author

@swift-ci please test linux platform

@nate-chandler nate-chandler merged commit b2bac74 into swiftlang:release/5.9 Apr 24, 2023
@nate-chandler nate-chandler deleted the cherrypick/release/5.9/rdar108385761 branch April 24, 2023 19:50
@AnthonyLatsis AnthonyLatsis added the 🍒 release cherry pick Flag: Release branch cherry picks label May 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🍒 release cherry pick Flag: Release branch cherry picks swift 5.9
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants