diff options
| author | mlugg <mlugg@mlugg.co.uk> | 2025-04-28 00:28:55 +0100 |
|---|---|---|
| committer | Matthew Lugg <mlugg@mlugg.co.uk> | 2025-05-03 20:10:26 +0100 |
| commit | f83fe2714bd4441610156e1a6017d07409ad6093 (patch) | |
| tree | ace9b73ebcc5dec94488312d8078f62822849a08 /src/Compilation.zig | |
| parent | ae1b444d6a651c6a6c6f09c15565d7b37759e488 (diff) | |
| download | zig-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/Compilation.zig')
0 files changed, 0 insertions, 0 deletions
