mirror of
https://github.com/ziglang/zig.git
synced 2026-01-02 03:25:01 +00:00
stage2: remove safety check for optional payload in codegen
This will be enforced by Sema.
This commit is contained in:
parent
b100e2ec2a
commit
0e3cd5bb1e
@ -1145,10 +1145,6 @@ fn airOptionalPayload(self: *Self, inst: Air.Inst.Index) !void {
|
||||
const ty_op = self.air.instructions.items(.data)[inst].ty_op;
|
||||
const result: MCValue = if (self.liveness.isUnused(inst)) .dead else result: {
|
||||
const operand = try self.resolveInst(ty_op.operand);
|
||||
if (self.wantSafety()) {
|
||||
// TODO check for null
|
||||
return self.fail("TODO implement check for null in .optional_payload", .{});
|
||||
}
|
||||
const dst_mcv: MCValue = blk: {
|
||||
if (self.reuseOperand(inst, ty_op.operand, 0, operand)) {
|
||||
break :blk operand;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user