Skip to content

SILGen: Fix crash in emitEnumConstructor() if type lowering depends on resilience #34421

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

Conversation

slavapestov
Copy link
Contributor

It's possible that the result value here is passed indirectly,
but the enum value is loadable inside the constructor's body.
Let's make sure we handle this correctly.

Fixes https://bugs.swift.org/browse/SR-12966 / rdar://problem/70395861.

…n resilience

It's possible that the result value here is passed indirectly,
but the enum value is loadable inside the constructor's body.
Let's make sure we handle this correctly.

Fixes https://bugs.swift.org/browse/SR-12966 / rdar://problem/70395861.
@slavapestov
Copy link
Contributor Author

@swift-ci Please smoke test

Copy link
Collaborator

@theblixguy theblixguy left a comment

Choose a reason for hiding this comment

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

LGTM! Thank you!

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