Skip to content

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