# stage2 LLVM: Use a packed aggregate for union payload init · gitcafe/zig

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

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

Visibility: public

Requested revision: e6ebdcb82ed9fd226ef18670115b8b2617c0a392

Requested commit: e6ebdcb82ed9fd226ef18670115b8b2617c0a392

Commit: e6ebdcb82ed9fd226ef18670115b8b2617c0a392

Tree: 1015c798799df19173c85908dec4a0e2c63adbb0

Author: Cody Tapscott

Committer: Andrew Kelley

## Message

```
stage2 LLVM: Use a packed aggregate for union payload init

Without the packed qualifier, the type layout that we use to
initialize doesn't match the correct layout of the underlying
storage, causing corrupted data and past-the-end writes.

```

## Parents

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

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