Skip to content

Fix reuse of the payload area when the discriminator != 0 #30301

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
Mar 9, 2020

Conversation

tbkka
Copy link
Contributor

@tbkka tbkka commented Mar 9, 2020

Expanded testing shows that I didn't quite nail the logic for combining discriminator + XIs + payload area.

This expands the tests, fixes the core logic for this case, and adds support for single-payload enums with function payloads.

Resolves rdar://60238856

@tbkka tbkka marked this pull request as ready for review March 9, 2020 20:16
@tbkka
Copy link
Contributor Author

tbkka commented Mar 9, 2020

@swift-ci Please test and merge

@swift-ci swift-ci merged commit 28f343d into swiftlang:master Mar 9, 2020
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