Skip to content

[sil] Make ValueOwnershipKind(unsigned) explicit to prevent implicit … #19454

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

…casts from ints/bools to ValueOwnershipKind.

I hit this problem while splitting classifying operand ownership from the
ownership verifier itself. There is no reason to allow for this implicit
conversion. Just makes updating code more error prone.

rdar://44667493

@gottesmm
Copy link
Contributor Author

@swift-ci smoke test and merge

@gottesmm gottesmm requested a review from shajrawi September 21, 2018 16:57
…casts from ints/bools to ValueOwnershipKind.

I hit this problem while splitting classifying operand ownership from the
ownership verifier itself. There is no reason to allow for this implicit
conversion. Just makes updating code more error prone.

rdar://44667493
@gottesmm gottesmm force-pushed the pr-8b45437a9bccca43564359431ce500a38048c02f branch from 675ee17 to af7d301 Compare September 21, 2018 16:58
@gottesmm
Copy link
Contributor Author

@swift-ci smoke test and merge

2 similar comments
@gottesmm
Copy link
Contributor Author

@swift-ci smoke test and merge

@gottesmm
Copy link
Contributor Author

@swift-ci smoke test and merge

@swift-ci swift-ci merged commit 4733bfc into swiftlang:master Sep 21, 2018
@gottesmm gottesmm deleted the pr-8b45437a9bccca43564359431ce500a38048c02f branch September 24, 2018 15:49
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