# Force LLVM to generate byte-aligned packed unions · gitcafe/zig

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

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

Visibility: public

Requested revision: 8fbae77770a77ccd645054e06baab45b03c8befd

Requested commit: 8fbae77770a77ccd645054e06baab45b03c8befd

Commit: 8fbae77770a77ccd645054e06baab45b03c8befd

Tree: 274683fbf2812e735de6cc7228430f2f50d4ad12

Author: LemonBoy

Committer: Andrew Kelley

## Message

```
Force LLVM to generate byte-aligned packed unions

Sometimes the frontend and LLVM would disagree on the ABI alignment of a
packed union. Solve the problem by telling LLVM we're gonna manage the
struct layout by ourselves.

Closes #3184

```

## Parents

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

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