aboutsummaryrefslogtreecommitdiff
path: root/src/zig_llvm-ar.cpp
diff options
context:
space:
mode:
authormlugg <mlugg@mlugg.co.uk>2025-04-28 00:28:55 +0100
committerMatthew Lugg <mlugg@mlugg.co.uk>2025-05-03 20:10:26 +0100
commitf83fe2714bd4441610156e1a6017d07409ad6093 (patch)
treeace9b73ebcc5dec94488312d8078f62822849a08 /src/zig_llvm-ar.cpp
parentae1b444d6a651c6a6c6f09c15565d7b37759e488 (diff)
downloadzig-f83fe2714bd4441610156e1a6017d07409ad6093.tar.gz
zig-f83fe2714bd4441610156e1a6017d07409ad6093.zip
compiler: fix comptime memory store bugs
* When storing a zero-bit type, we should short-circuit almost immediately. Zero-bit stores do not need to do any work. * The bit size computation for arrays is incorrect; the `abiSize` will already be appropriately aligned, but the logic to do so here incorrectly assumes that zero-bit types have an alignment of 0. They don't; their alignment is 1. Resolves: #21202 Resolves: #21508 Resolves: #23307
Diffstat (limited to 'src/zig_llvm-ar.cpp')
0 files changed, 0 insertions, 0 deletions