Skip to content

Fix enum inspection of a no-payload enum inside another enum #72290

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 13, 2024

Conversation

tbkka
Copy link
Contributor

@tbkka tbkka commented Mar 13, 2024

When a no-payload enum is stored inside a multi-payload enum, the outer enum may be using some of the extra high-order bits. So when we examine the inner enum, we should just strip those bits.

Resolves rdar://123727657

When a no-payload enum is stored inside a multi-payload enum,
the outer enum may be using some of the extra high-order bits.
So when we examine the inner enum, we should just strip those bits.
@tbkka tbkka requested review from mikeash and augusto2112 March 13, 2024 16:17
@tbkka tbkka requested a review from a team as a code owner March 13, 2024 16:17
@tbkka tbkka enabled auto-merge March 13, 2024 16:17
@tbkka
Copy link
Contributor Author

tbkka commented Mar 13, 2024

@swift-ci Please test

Copy link
Contributor

@augusto2112 augusto2112 left a comment

Choose a reason for hiding this comment

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

Thanks!

@tbkka
Copy link
Contributor Author

tbkka commented Mar 13, 2024

@swift-ci Please test

@tbkka tbkka merged commit 7ac7d55 into swiftlang:main Mar 13, 2024
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