# LLVM: use unnamed struct llvm type for unions when necessary · gitcafe/zig

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

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

Visibility: public

Requested revision: c030ec1884ad7c553d6680944b47a1fc7653586f

Requested commit: c030ec1884ad7c553d6680944b47a1fc7653586f

Commit: c030ec1884ad7c553d6680944b47a1fc7653586f

Tree: 5e11545a9a732ac2565b403bfd723c5f4f285998

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
LLVM: use unnamed struct llvm type for unions when necessary

The constant value lowering for unions was missing a check for whether
the payload was itself an unnamed struct. Lowerings of other types
already handle this case.

closes #11971

```

## Parents

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

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