aboutsummaryrefslogtreecommitdiff
path: root/src/type.zig
diff options
context:
space:
mode:
authorXavier Bouchoux <xavierb@gmail.com>2023-10-03 05:34:19 +0000
committerXavier Bouchoux <xavierb@gmail.com>2023-10-03 05:34:19 +0000
commit405705cb76914072b9a91ac29f7cf0bf67b255f4 (patch)
tree2f2928e3a6c42626cf1464a2f52dba546ea6e50d /src/type.zig
parent62d178e91af57c19d0ac000fe6930039a23e53a3 (diff)
downloadzig-405705cb76914072b9a91ac29f7cf0bf67b255f4.tar.gz
zig-405705cb76914072b9a91ac29f7cf0bf67b255f4.zip
codegen: fix byte-aligned field offsets in unaligned nested packed structs
Diffstat (limited to 'src/type.zig')
-rw-r--r--src/type.zig6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/type.zig b/src/type.zig
index a7b760a482..78514fe3d5 100644
--- a/src/type.zig
+++ b/src/type.zig
@@ -3028,12 +3028,6 @@ pub const Type = struct {
};
}
- pub fn packedStructFieldByteOffset(ty: Type, field_index: u32, mod: *Module) u32 {
- const ip = &mod.intern_pool;
- const struct_type = ip.indexToKey(ty.toIntern()).struct_type;
- return @divExact(mod.structPackedFieldBitOffset(struct_type, field_index), 8);
- }
-
pub const FieldOffset = struct {
field: usize,
offset: u64,