diff options
| author | Xavier Bouchoux <xavierb@gmail.com> | 2023-07-29 20:08:08 +0200 |
|---|---|---|
| committer | Xavier Bouchoux <xavierb@gmail.com> | 2023-10-03 06:39:20 +0200 |
| commit | 62d178e91af57c19d0ac000fe6930039a23e53a3 (patch) | |
| tree | f849674dd8aa13839319e05585b8513a0192b7ba /src/Compilation.zig | |
| parent | 412d863ba5801c1376af7ab8f04a71b839a820a6 (diff) | |
| download | zig-62d178e91af57c19d0ac000fe6930039a23e53a3.tar.gz zig-62d178e91af57c19d0ac000fe6930039a23e53a3.zip | |
codegen: fix field offsets in packed structs
* add nested packed struct/union behavior tests
* use ptr_info.packed_offset rather than trying to duplicate the logic from Sema.structFieldPtrByIndex()
* use the container_ptr_info.packed_offset to account for non-aligned nested structs.
* dedup type.packedStructFieldBitOffset() and module.structPackedFieldBitOffset()
Diffstat (limited to 'src/Compilation.zig')
0 files changed, 0 insertions, 0 deletions
