| ... | ... | @@ -1145,10 +1145,6 @@ fn airOptionalPayload(self: *Self, inst: Air.Inst.Index) !void { |
| 1145 | 1145 | const ty_op = self.air.instructions.items(.data)[inst].ty_op; |
| 1146 | 1146 | const result: MCValue = if (self.liveness.isUnused(inst)) .dead else result: { |
| 1147 | 1147 | const operand = try self.resolveInst(ty_op.operand); |
| 1148 | | if (self.wantSafety()) { |
| 1149 | | // TODO check for null |
| 1150 | | return self.fail("TODO implement check for null in .optional_payload", .{}); |
| 1151 | | } |
| 1152 | 1148 | const dst_mcv: MCValue = blk: { |
| 1153 | 1149 | if (self.reuseOperand(inst, ty_op.operand, 0, operand)) { |
| 1154 | 1150 | break :blk operand; |