| ... | @@ -4223,9 +4223,11 @@ fn airStructFieldVal(f: *Function, inst: Air.Inst.Index) !CValue { | ... | @@ -4223,9 +4223,11 @@ fn airStructFieldVal(f: *Function, inst: Air.Inst.Index) !CValue { |
| 4223 | if (f.liveness.isUnused(inst)) | 4223 | if (f.liveness.isUnused(inst)) |
| 4224 | return CValue.none; | 4224 | return CValue.none; |
| 4225 | | 4225 | |
| | 4226 | const inst_ty = f.air.typeOfIndex(inst); |
| | 4227 | if (!inst_ty.hasRuntimeBitsIgnoreComptime()) return CValue.none; |
| | 4228 | |
| 4226 | const ty_pl = f.air.instructions.items(.data)[inst].ty_pl; | 4229 | const ty_pl = f.air.instructions.items(.data)[inst].ty_pl; |
| 4227 | const extra = f.air.extraData(Air.StructField, ty_pl.payload).data; | 4230 | const extra = f.air.extraData(Air.StructField, ty_pl.payload).data; |
| 4228 | const inst_ty = f.air.typeOfIndex(inst); | | |
| 4229 | const target = f.object.dg.module.getTarget(); | 4231 | const target = f.object.dg.module.getTarget(); |
| 4230 | const struct_byval = try f.resolveInst(extra.struct_operand); | 4232 | const struct_byval = try f.resolveInst(extra.struct_operand); |
| 4231 | const struct_ty = f.air.typeOf(extra.struct_operand); | 4233 | const struct_ty = f.air.typeOf(extra.struct_operand); |