# stage2: LLVM: fix lowering of packed structs · gitcafe/zig

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

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

Visibility: public

Requested revision: 6b8e33d14c92229b1632c481906d7d698c584000

Requested commit: 6b8e33d14c92229b1632c481906d7d698c584000

Commit: 6b8e33d14c92229b1632c481906d7d698c584000

Tree: 5d752c74a0c84102a91a67ee799dbdd66b37ad0c

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
stage2: LLVM: fix lowering of packed structs

 * ensure enough capacity when building the LLVM type and value.
 * add explicit padding field and populate it to ensure proper
   alignment.

```

## Parents

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

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