aboutsummaryrefslogtreecommitdiff
path: root/src/Module.zig
diff options
context:
space:
mode:
authormlugg <mlugg@mlugg.co.uk>2023-09-21 02:00:52 +0100
committerAndrew Kelley <andrew@ziglang.org>2023-09-21 14:48:41 -0700
commit1b672e41c528b0aa225cbe07c61203d04b2d9034 (patch)
tree080cac4fbde495c9b216fac1cd67e84799740059 /src/Module.zig
parentcd242b7440e11d9997c33296b3974dfb1fbd5d95 (diff)
downloadzig-1b672e41c528b0aa225cbe07c61203d04b2d9034.tar.gz
zig-1b672e41c528b0aa225cbe07c61203d04b2d9034.zip
InternPool,Sema,type,llvm: alignment fixes
This changeset fixes the handling of alignment in several places. The new rules are: * `@alignOf(T)` where `T` is a runtime zero-bit type is at least 1, maybe greater. * Zero-bit fields in `extern` structs *do* force alignment, potentially offsetting following fields. * Zero-bit fields *do* have addresses within structs which can be observed and are consistent with `@offsetOf`. These are not necessarily all implemented correctly yet (see disabled test), but this commit fixes all regressions compared to master, and makes one new test pass.
Diffstat (limited to 'src/Module.zig')
0 files changed, 0 insertions, 0 deletions