| ... | @@ -4400,7 +4400,7 @@ fn zirValidateArrayInitTy( | ... | @@ -4400,7 +4400,7 @@ fn zirValidateArrayInitTy( |
| 4400 | const mod = sema.mod; | 4400 | const mod = sema.mod; |
| 4401 | const inst_data = sema.code.instructions.items(.data)[@intFromEnum(inst)].pl_node; | 4401 | const inst_data = sema.code.instructions.items(.data)[@intFromEnum(inst)].pl_node; |
| 4402 | const src = inst_data.src(); | 4402 | const src = inst_data.src(); |
| 4403 | const ty_src: LazySrcLoc = .{ .node_offset_init_ty = inst_data.src_node }; | 4403 | const ty_src: LazySrcLoc = if (is_result_ty) src else .{ .node_offset_init_ty = inst_data.src_node }; |
| 4404 | const extra = sema.code.extraData(Zir.Inst.ArrayInit, inst_data.payload_index).data; | 4404 | const extra = sema.code.extraData(Zir.Inst.ArrayInit, inst_data.payload_index).data; |
| 4405 | const ty = sema.resolveType(block, ty_src, extra.ty) catch |err| switch (err) { | 4405 | const ty = sema.resolveType(block, ty_src, extra.ty) catch |err| switch (err) { |
| 4406 | // It's okay for the type to be unknown: this will result in an anonymous array init. | 4406 | // It's okay for the type to be unknown: this will result in an anonymous array init. |