Skip to content

[semantic-sil] Teach the verifier that an enum return value is a ValueOwnershipKind erasure point. #10833

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

gottesmm
Copy link
Contributor

@gottesmm gottesmm commented Jul 9, 2017

[semantic-sil] Teach the verifier that an enum return value is a ValueOwnershipKind erasure point.

This means that a trivial enum case of a non-trivial enum can be returned @owned
even though it is trivial. We already follow this pattern with bb arguments.

rdar://31880847

…eOwnershipKind erasure point.

This means that a trivial enum case of a non-trivial enum can be returned @owned
even though it is trivial. We already follow this pattern with bb arguments.

rdar://31880847
@gottesmm
Copy link
Contributor Author

gottesmm commented Jul 9, 2017

@swift-ci smoke test and merge

@gottesmm
Copy link
Contributor Author

gottesmm commented Jul 9, 2017

On another note, this on my machine actually gets stdlibCore to pass the verifier. I am hitting a separate issue verifying dispatch.

@swift-ci swift-ci merged commit 856429c into swiftlang:master Jul 9, 2017
@gottesmm gottesmm deleted the enum_valueownershipkind_erased_return_value branch July 9, 2017 10:43
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