aboutsummaryrefslogtreecommitdiff
path: root/src/arch/x86_64/CodeGen.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2022-09-12 19:38:08 -0700
committerAndrew Kelley <andrew@ziglang.org>2022-09-13 02:04:20 -0700
commitbec70a1a39398a3f4e2b1edf914c4755a9ebb623 (patch)
treede061fcc0fa035b79588e8e854a93100902de4d1 /src/arch/x86_64/CodeGen.zig
parentf8a9bc57ce1a2a5a1b90e9a33501b64f2dd79019 (diff)
downloadzig-bec70a1a39398a3f4e2b1edf914c4755a9ebb623.tar.gz
zig-bec70a1a39398a3f4e2b1edf914c4755a9ebb623.zip
stage2: remove pointless discards from source code
Good riddance!
Diffstat (limited to 'src/arch/x86_64/CodeGen.zig')
-rw-r--r--src/arch/x86_64/CodeGen.zig2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/arch/x86_64/CodeGen.zig b/src/arch/x86_64/CodeGen.zig
index 05d7f2b73b..c9c03e4646 100644
--- a/src/arch/x86_64/CodeGen.zig
+++ b/src/arch/x86_64/CodeGen.zig
@@ -1960,7 +1960,6 @@ fn airErrUnionPayloadPtrSet(self: *Self, inst: Air.Inst.Index) !void {
}
fn airErrReturnTrace(self: *Self, inst: Air.Inst.Index) !void {
- _ = inst;
const result: MCValue = if (self.liveness.isUnused(inst))
.dead
else
@@ -6590,7 +6589,6 @@ fn airFloatToInt(self: *Self, inst: Air.Inst.Index) !void {
fn airCmpxchg(self: *Self, inst: Air.Inst.Index) !void {
const ty_pl = self.air.instructions.items(.data)[inst].ty_pl;
const extra = self.air.extraData(Air.Block, ty_pl.payload);
- _ = ty_pl;
_ = extra;
return self.fail("TODO implement x86 airCmpxchg", .{});
// return self.finishAir(inst, result, .{ extra.ptr, extra.expected_value, extra.new_value });