Skip to content

[silgen] Assert that rvalues always have consistent ownership and cle… #11195

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

…anups.

This means that all non-trivial ManagedValues must:

  1. All have a cleanup or all not have a cleanup.
  2. Have the same ValueOwnershipKind.

Semantic SIL requires this of tuple values. So it makes sense to catch this bug
as early as possible.

rdar://33358110

@gottesmm
Copy link
Contributor Author

@swift-ci smoke test and merge

@gottesmm
Copy link
Contributor Author

Actually, I want to do a full test... Hmm...

…anups.

This means that all non-trivial ManagedValues must:

1. All have a cleanup or all not have a cleanup.
2. Have the same ValueOwnershipKind.

Semantic SIL requires this of tuple values. So it makes sense to catch this bug
as early as possible.

rdar://33358110
@gottesmm gottesmm force-pushed the rvalues_should_have_consistent_ownership branch from 3648d73 to 7bad324 Compare July 26, 2017 05:41
@gottesmm
Copy link
Contributor Author

There we go.

@gottesmm
Copy link
Contributor Author

@swift-ci test

@swift-ci
Copy link
Contributor

Build failed
Jenkins build - Swift Test Linux Platform
Git Commit - 3648d7352ce64076447a18e78967e9b80686a51d
Test requested by - @gottesmm

@swift-ci
Copy link
Contributor

Build failed
Jenkins build - Swift Test OS X Platform
Git Commit - 3648d7352ce64076447a18e78967e9b80686a51d
Test requested by - @gottesmm

@gottesmm
Copy link
Contributor Author

@swift-ci test

@gottesmm gottesmm merged commit d018ecc into swiftlang:master Jul 26, 2017
@gottesmm gottesmm deleted the rvalues_should_have_consistent_ownership branch July 26, 2017 17:40
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