# LLVM backend: handle unnamed structs when lowering array values · gitcafe/zig

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

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

Visibility: public

Requested revision: 91508e10abe4ab82e4f7a4dcdfac178ebd9e52d3

Requested commit: 91508e10abe4ab82e4f7a4dcdfac178ebd9e52d3

Commit: 91508e10abe4ab82e4f7a4dcdfac178ebd9e52d3

Tree: 305e11d6d354dc6c96a94deff9b040b9b348054b

Author: Andrew Kelley

Committer: Jakub Konka

## Message

```
LLVM backend: handle unnamed structs when lowering array values

LLVM doesn't support lowering union values, so we have to use unnamed
structs to do it, which means any type that contains a union as an
element, even if it is nested in another type, has to have a mechanism
to detect when it can't be lowered normally and has to resort itself to
an unnamed struct.

This includes arrays.

```

## Parents

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

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