aboutsummaryrefslogtreecommitdiff
path: root/src/zig_llvm.cpp
diff options
context:
space:
mode:
authorXavier Bouchoux <xavierb@gmail.com>2023-07-29 20:08:08 +0200
committerXavier Bouchoux <xavierb@gmail.com>2023-10-03 06:39:20 +0200
commit62d178e91af57c19d0ac000fe6930039a23e53a3 (patch)
treef849674dd8aa13839319e05585b8513a0192b7ba /src/zig_llvm.cpp
parent412d863ba5801c1376af7ab8f04a71b839a820a6 (diff)
downloadzig-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/zig_llvm.cpp')
0 files changed, 0 insertions, 0 deletions