Skip to content

[RemoteMirror] Correctly project enums with zero-sized payloads #67257

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

tbkka
Copy link
Contributor

@tbkka tbkka commented Jul 12, 2023

I earlier overhauled the enum layout logic to correctly consider enums with generic cases and cases that have zero size. This updates the enum projection logic to use that information as well.

In particular, this fixes a bug where an MPE with zero-sized cases would be incorrectly projected by RemoteMirror (with consequences for the leaks tool and lldb).

Resolves rdar://111705059

I earlier overhauled the enum layout logic to correctly consider
enums with generic cases and cases that have zero size.
This updates the enum projection logic to use that information
as well.

In particular, this fixes a bug where an MPE with zero-sized cases
would be incorrectly projected by RemoteMirror (with consequences
for the `leaks` tool and lldb).

Resolves rdar://111705059
@tbkka
Copy link
Contributor Author

tbkka commented Jul 12, 2023

@swift-ci Please test

@tbkka tbkka requested review from mikeash, btroller and drexin July 12, 2023 20:33
Copy link
Contributor

@mikeash mikeash left a comment

Choose a reason for hiding this comment

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

These rules are awfully complex.

@tbkka tbkka merged commit 9ccc740 into swiftlang:main Jul 12, 2023
@tbkka tbkka deleted the tbkka-rdar111705059-project-MPE-with-zero-sized-payloads branch August 1, 2024 16:37
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