Skip to content

SILGenPattern cleanup #15554

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 2 commits into from
Mar 28, 2018
Merged

Conversation

jrose-apple
Copy link
Contributor

Two simple cleanups for the parts of SILGenPattern I modified in #14724:

  • Wrap up four out-parameters in a single struct
  • Remove the formal/actual element distinction (used back when IUO was a distinct nominal type)

No functionality change, but makes my next task easier: emitting a good diagnostic when an unknown case value does end up unhandled in a switch (rdar://problem/37728359). Right now it just traps.

@jrose-apple
Copy link
Contributor Author

@swift-ci Please smoke test

This used to model the difference between Optional.some and IUO.some,
but that's gone now!

No functionality change.
@jrose-apple jrose-apple force-pushed the SILGenPattern-cleanup branch from 7db93aa to 7987cdc Compare March 27, 2018 21:43
@jrose-apple
Copy link
Contributor Author

@swift-ci Please smoke test

@jrose-apple
Copy link
Contributor Author

Okay, maybe I didn't need this cleanup, but it's still a good cleanup.

@jrose-apple
Copy link
Contributor Author

@swift-ci Please smoke test Linux

@jrose-apple jrose-apple merged commit a0d5180 into swiftlang:master Mar 28, 2018
@jrose-apple jrose-apple deleted the SILGenPattern-cleanup branch March 28, 2018 02:16
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