Skip to content

SILGen: Strip __owned from parameter types when emitting SE-0110 tuple splat #19681

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 3, 2018

Conversation

slavapestov
Copy link
Contributor

Instead of using composeInput(), build a tuple type containing
the element types only, dropping ownership qualifiers and
asserting that there are no inout or vararg elements.

This is correct because we already promote +0 values to +1, or
clean up +1 values that are only used as +0 as needed.

Fixes rdar://problem/44915136.

@slavapestov slavapestov requested a review from rjmccall October 3, 2018 05:34
@slavapestov
Copy link
Contributor Author

@swift-ci Please smoke test

…e splat

Instead of using composeInput(), build a tuple type containing
the element types only, dropping ownership qualifiers and
asserting that there are no inout or vararg elements.

This is correct because we already promote +0 values to +1, or
clean up +1 values that are only used as +0 as needed.

Fixes <rdar://problem/44915136>.
@slavapestov slavapestov force-pushed the tuple-splat-with-owned branch from 5ac0aec to 084b0e0 Compare October 3, 2018 06:43
@slavapestov
Copy link
Contributor Author

@swift-ci Please smoke test

@slavapestov slavapestov merged commit e6465d1 into swiftlang:master Oct 3, 2018
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