Skip to content

[5.1-04-24-2019] Single case enum fixes #24378

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

aschwaighofer
Copy link
Contributor

  • Initialize the extraInhabitantCount field of single case enums
  • IRGen: Initialize single case enum extrainhabitant value witness in generated code

rdar://49786768

* Initialize the extraInhabitantCount field of single case enums
* IRGen: Intialize single case enum extrainhabitant value witness in generated code

rdar://49786768
@aschwaighofer aschwaighofer requested a review from a team as a code owner April 29, 2019 21:29
@aschwaighofer
Copy link
Contributor Author

@swift-ci Please test

@bob-wilson
Copy link
Contributor

I would be happy to approve this, but I'd like to get someone who knows IRGen better to review it first. @rjmccall or @jckarter, could one of you take a look?

@jckarter
Copy link
Contributor

This LGTM. We should make a note to eventually conditionalize this code on deployment target, so we can save the code size when deploying to OS versions with the fix in the runtime.

@aschwaighofer aschwaighofer merged commit b463e65 into swiftlang:swift-5.1-branch-04-24-2019 Apr 30, 2019
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.

3 participants