Merge remote-tracking branch 'origin/master' into llvm16
This commit is contained in:
3258
src/codegen/c.zig
3258
src/codegen/c.zig
File diff suppressed because it is too large
Load Diff
1896
src/codegen/c/type.zig
Normal file
1896
src/codegen/c/type.zig
Normal file
File diff suppressed because it is too large
Load Diff
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user