diff options
| author | Veikka Tuominen <git@vexu.eu> | 2022-04-22 23:10:02 +0300 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2022-05-16 17:42:51 -0700 |
| commit | 66c3988e5eebd423844d5dd20c762d6fefe20adf (patch) | |
| tree | fa946dcc687f49cf8e20851f15bb1f5028beef93 /src/codegen/c.zig | |
| parent | eee8fffec70b1d3e2900970dbe836e346e499231 (diff) | |
| download | zig-66c3988e5eebd423844d5dd20c762d6fefe20adf.tar.gz zig-66c3988e5eebd423844d5dd20c762d6fefe20adf.zip | |
stage2: disable error return tracing on unsupported targets
Diffstat (limited to 'src/codegen/c.zig')
| -rw-r--r-- | src/codegen/c.zig | 24 |
1 files changed, 1 insertions, 23 deletions
diff --git a/src/codegen/c.zig b/src/codegen/c.zig index c3ca79dabe..92770168f4 100644 --- a/src/codegen/c.zig +++ b/src/codegen/c.zig @@ -3451,33 +3451,11 @@ fn airErrUnionPayloadPtrSet(f: *Function, inst: Air.Inst.Index) !CValue { fn airErrReturnTrace(f: *Function, inst: Air.Inst.Index) !CValue { if (f.liveness.isUnused(inst)) return CValue.none; - - const un_op = f.air.instructions.items(.data)[inst].un_op; - const writer = f.object.writer(); - const inst_ty = f.air.typeOfIndex(inst); - const operand = try f.resolveInst(un_op); - const local = try f.allocLocal(inst_ty, .Const); - - try writer.writeAll(" = "); - - _ = operand; - _ = local; return f.fail("TODO: C backend: implement airErrReturnTrace", .{}); } fn airSetErrReturnTrace(f: *Function, inst: Air.Inst.Index) !CValue { - if (f.liveness.isUnused(inst)) return CValue.none; - - const un_op = f.air.instructions.items(.data)[inst].un_op; - const writer = f.object.writer(); - const inst_ty = f.air.typeOfIndex(inst); - const operand = try f.resolveInst(un_op); - const local = try f.allocLocal(inst_ty, .Const); - - try writer.writeAll(" = "); - - _ = operand; - _ = local; + _ = inst; return f.fail("TODO: C backend: implement airSetErrReturnTrace", .{}); } |
