# llvm: fix lowering of packed struct constants · gitcafe/zig

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

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

Visibility: public

Requested revision: a319211eeed8aca295912c5a484ed4d389d36918

Requested commit: a319211eeed8aca295912c5a484ed4d389d36918

Commit: a319211eeed8aca295912c5a484ed4d389d36918

Tree: ec6657e8a1e895f700ad1d166e39a0929a957e37

Author: Matthew Lugg

Committer: Alex Rønne Petersen

## Message

```
llvm: fix lowering of packed struct constants

The big-endian logic here was simply incorrect. Luckily, it was also
overcomplicated; after calling `Value.writeToPackedMemory`, there is a
method on `std.math.big.int.Mutable` which just does the correct
endianness load for us.

```

## Parents

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

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