diff options
| author | Jacob Young <jacobly0@users.noreply.github.com> | 2022-12-18 21:57:18 -0500 |
|---|---|---|
| committer | Jacob Young <jacobly0@users.noreply.github.com> | 2022-12-18 22:11:26 -0500 |
| commit | 52e5c6602550788cab96957d1a177bc7952d7a09 (patch) | |
| tree | 53615c2f51c4ac8cec3fdb63941efe24e9b8875a /src/zig_llvm-ar.cpp | |
| parent | 18f05664dcf9c3a307d269dda4f146bafbca19e9 (diff) | |
| download | zig-52e5c6602550788cab96957d1a177bc7952d7a09.tar.gz zig-52e5c6602550788cab96957d1a177bc7952d7a09.zip | |
llvm: fix use of invalid alignment
* Initialize `big_align` with 1 as 0 is not a valid alignment.
* Add an assert to `alignForwardGeneric` to catch this issue earlier.
* Refactor valid alignment checks to call a more descriptive function.
Diffstat (limited to 'src/zig_llvm-ar.cpp')
0 files changed, 0 insertions, 0 deletions
