diff options
| author | Jakub Konka <kubkon@jakubkonka.com> | 2022-01-01 14:27:06 +0100 |
|---|---|---|
| committer | Jakub Konka <kubkon@jakubkonka.com> | 2022-01-01 14:27:06 +0100 |
| commit | 0e3cd5bb1ee555a9ccfb90c1bbb0e363ca25d2d6 (patch) | |
| tree | 49b17f44256beda39ba2d7a88a7f78c3923c0f20 /src | |
| parent | b100e2ec2a06268623b119baf584e059440cb8f0 (diff) | |
| download | zig-0e3cd5bb1ee555a9ccfb90c1bbb0e363ca25d2d6.tar.gz zig-0e3cd5bb1ee555a9ccfb90c1bbb0e363ca25d2d6.zip | |
stage2: remove safety check for optional payload in codegen
This will be enforced by Sema.
Diffstat (limited to 'src')
| -rw-r--r-- | src/arch/x86_64/CodeGen.zig | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/arch/x86_64/CodeGen.zig b/src/arch/x86_64/CodeGen.zig index 0ec70af569..51da348265 100644 --- a/src/arch/x86_64/CodeGen.zig +++ b/src/arch/x86_64/CodeGen.zig @@ -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; |
