# std.zig.llvm.bitcode_writer: Fix word byte order on big endian systems\. · gitcafe/zig

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

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

Visibility: public

Requested revision: 3c924abb69db4d508165857ca1c54696a77645ce

Requested commit: 3c924abb69db4d508165857ca1c54696a77645ce

Commit: 3c924abb69db4d508165857ca1c54696a77645ce

Tree: 7cca2c41173b27c163c151519d0bafebd467f3e5

Author: Alex Rønne Petersen

Committer: Andrew Kelley

## Message

```
std.zig.llvm.bitcode_writer: Fix word byte order on big endian systems.

The bitcode format always uses little endian words. Prior to this commit, a
bitcode file produced on e.g. aarch64_be or s390x would fail to be loaded by
LLVM.

```

## Parents

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

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