-
Notifications
You must be signed in to change notification settings - Fork 10.5k
IRGen: Initialize single case enum extrainhabitant value witness in generated code #24293
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
IRGen: Initialize single case enum extrainhabitant value witness in generated code #24293
Conversation
…nerated code Older Swift runtimes miss this initialization in the swift_initEnumMetadataSingleCase runtime call. rdar://49786768
@swift-ci Please test |
Compiler fix for #24278 |
Build failed |
Should we do this conditionally based on the deployment target or is it cheap enough to just do it all the time? |
Cheap: This is a single load/store that is executed only once per type initialization (once per program run) of a single case enum type. We could conditionalize this on a deployment target in the future. I don’t know that we have deployment target support plumped through the compiler. It would not be worth to do it for this. |
Build failed |
OK, that sounds fine then. |
@swift-ci Please test |
Build failed |
Build failed |
@swift-ci Please test os x |
Build failed |
@swift-ci Please test os x |
Older Swift runtimes miss this initialization in the swift_initEnumMetadataSingleCase runtime call.
rdar://49786768