Skip to content

IRGen: fix a problem with 24-bit enum payloads in statically initialized global variables #67534

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 1 commit into from
Jul 27, 2023

Conversation

eeckstein
Copy link
Contributor

IRGen crashed in case an enum, which has a 24 bit payload (e.g. three UInt8), is used as a payload of another enum, e.g. Optional, in a statically initialized global variable.

rdar://112823823

…zed global variables

IRGen crashed in case an enum, which has a 24 bit payload (e.g. three `UInt8`), is used as a payload of another enum, e.g. `Optional`, in a statically initialized global variable.

rdar://112823823
@eeckstein
Copy link
Contributor Author

@swift-ci test

@eeckstein eeckstein requested a review from drexin July 26, 2023 15:00
Copy link
Contributor

@drexin drexin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@eeckstein eeckstein merged commit b3cd553 into swiftlang:main Jul 27, 2023
@eeckstein eeckstein deleted the fix-24-bit-enums branch July 27, 2023 03:50
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