Skip to content

[SILGen] Consuming a param implies it's eager-move. #65377

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 3 commits into from
Apr 24, 2023

Conversation

nate-chandler
Copy link
Contributor

@nate-chandler nate-chandler commented Apr 22, 2023

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
Copy link
Contributor Author

@swift-ci please test

Copy link
Contributor

@atrick atrick left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perfect!

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
Copy link
Contributor Author

@swift-ci please test

@nate-chandler nate-chandler merged commit 0c0ec72 into swiftlang:main Apr 24, 2023
@nate-chandler nate-chandler deleted the rdar108385761 branch April 24, 2023 19:49
gottesmm added a commit to gottesmm/swift that referenced this pull request Apr 25, 2023
That PR was for rdar://108385761
gottesmm added a commit to gottesmm/swift that referenced this pull request Apr 25, 2023
That PR was for rdar://108385761
gottesmm added a commit to gottesmm/swift that referenced this pull request Apr 25, 2023
That PR was for rdar://108385761

(cherry picked from commit 9c8d224)
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.

2 participants