Skip to content
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

LLVM: fix lowering of untagged union types #11966

Merged
merged 1 commit into from
Jun 30, 2022
Merged

Conversation

andrewrk
Copy link
Member

The LLVM backend was calculating the amount of padding solely based
on the payload size. However, in the case where there is no union
tag, this fails to take into account alignment.

Closes #11857

The LLVM backend was calculating the amount of padding solely based
on the payload size. However, in the case where there is no union
tag, this fails to take into account alignment.

Closes #11857
@andrewrk andrewrk merged commit c248af3 into master Jun 30, 2022
@andrewrk andrewrk deleted the llvm-untagged-union-type branch June 30, 2022 06:43
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.

Stage2 specific union segfaults test runner when used in error union or optional
1 participant