Merge remote-tracking branch 'origin/master' into llvm16

This commit is contained in:
Andrew Kelley
2023-02-27 14:11:29 -07:00
122 changed files with 15938 additions and 3837 deletions

File diff suppressed because it is too large Load Diff

1896
src/codegen/c/type.zig Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -6025,8 +6025,8 @@ pub const FuncGen = struct {
const field_ptr = try self.resolveInst(extra.field_ptr);
const target = self.dg.module.getTarget();
const struct_ty = self.air.getRefType(ty_pl.ty).childType();
const field_offset = struct_ty.structFieldOffset(extra.field_index, target);
const parent_ty = self.air.getRefType(ty_pl.ty).childType();
const field_offset = parent_ty.structFieldOffset(extra.field_index, target);
const res_ty = try self.dg.lowerType(self.air.getRefType(ty_pl.ty));
if (field_offset == 0) {