mirror of
https://github.com/ziglang/zig.git
synced 2026-01-11 09:55:12 +00:00
codegen: fix lowering of AIR br instruction
It incorrectly did not process the death of its operand.
This commit is contained in:
parent
f7ee3b4ca5
commit
bf09dd87b6
@ -3404,7 +3404,7 @@ fn Function(comptime arch: std.Target.Cpu.Arch) type {
|
||||
fn airBr(self: *Self, inst: Air.Inst.Index) !void {
|
||||
const branch = self.air.instructions.items(.data)[inst].br;
|
||||
try self.br(branch.block_inst, branch.operand);
|
||||
return self.finishAirBookkeeping();
|
||||
return self.finishAir(inst, .dead, .{ branch.operand, .none, .none });
|
||||
}
|
||||
|
||||
fn airBoolOp(self: *Self, inst: Air.Inst.Index) !void {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user