Skip to content
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

[semantic-arc] Invert a condition so that the early exit is first. #26958

Conversation

gottesmm
Copy link
Contributor

NFC.


The reason that I am doing this is that I am going to add support for handling forwarding term instructions (e.x. switch_enum). Both non-term and term cases both want this as an early exit, so it makes sense to hoist it now.

@gottesmm
Copy link
Contributor Author

@swift-ci smoke test and merge

@gottesmm gottesmm merged commit bcf93c6 into swiftlang:master Aug 31, 2019
@gottesmm gottesmm deleted the pr-266cfd499d8b73f2e36fbf2ce23b72aa89097910 branch August 31, 2019 05:11
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