# llvm: unions which are equivalent to enums are not by-ref · gitcafe/zig

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

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

Visibility: public

Requested revision: ba6abd71c2d3664bc658cf5ce55b5c53052dc720

Requested commit: ba6abd71c2d3664bc658cf5ce55b5c53052dc720

Commit: ba6abd71c2d3664bc658cf5ce55b5c53052dc720

Tree: 116c178b6877cbf07abbeec681768adbaebd7449

Author: mlugg

Committer: mlugg

## Message

```
llvm: unions which are equivalent to enums are not by-ref

The LLVM backend lowers unions where all fields are zero-bit as
equivalent to their backing enum, and expects them to have the same
by-ref-ness in at least one place in the backend, probably more.

Resolves: #23577

```

## Parents

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

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