# LLVM: fix lowering of untagged union types · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/c248af3bdcd17c334e742d53a7ac7bda2422a688)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: c248af3bdcd17c334e742d53a7ac7bda2422a688

Requested commit: c248af3bdcd17c334e742d53a7ac7bda2422a688

Commit: c248af3bdcd17c334e742d53a7ac7bda2422a688

Tree: 8d47cfaa0f653ef1b835c6e250178c763270000a

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
LLVM: fix lowering of untagged union types

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

```

## Parents

- [54454fd0102af8b25dbc85751d37fd265380d920](https://git.cafe/gitcafe/zig/commit/54454fd0102af8b25dbc85751d37fd265380d920?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/c248af3bdcd17c334e742d53a7ac7bda2422a688?format=markdown)
