# stage2: LLVM backend: fix const packed structs · gitcafe/zig

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

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

Visibility: public

Requested revision: 886df772f06377df95f867e8b18ee47bbd0fcd8b

Requested commit: 886df772f06377df95f867e8b18ee47bbd0fcd8b

Commit: 886df772f06377df95f867e8b18ee47bbd0fcd8b

Tree: d8224b85c2b1691abf4ce669fce4b0aa0fc9e933

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
stage2: LLVM backend: fix const packed structs

When doing LLVM const bit shifting we must make sure the integer bit
sizes are wide enough or else LLVM gives us a poison result.

```

## Parents

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

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