authorgravatar for kubkon@jakubkonka.comJakub Konka <kubkon@jakubkonka.com> 2022-09-02 21:51:49+02:00
committergravatar for kubkon@jakubkonka.comJakub Konka <kubkon@jakubkonka.com> 2022-09-07 22:42:56+02:00
log28f525baa4ff0480043a16dd2467f231c8d6526a
tree199a516f78c17e93847a666fc218c55181ec0f65
parent1d57b347e9aeddc2de33b1b77b331d36e4900425

x86_64: handle ptr_stack_offset for blocks


1 files changed, 1 insertions(+), 1 deletions(-)

src/arch/x86_64/CodeGen.zig+1-1
......@@ -5328,7 +5328,7 @@ fn br(self: *Self, block: Air.Inst.Index, operand: Air.Inst.Ref) !void {
53285328 block_data.mcv = switch (operand_mcv) {
53295329 .none, .dead, .unreach => unreachable,
53305330 .register, .stack_offset, .memory => operand_mcv,
5331 .eflags, .immediate => blk: {
5331 .eflags, .immediate, .ptr_stack_offset => blk: {
53325332 const new_mcv = try self.allocRegOrMem(block, true);
53335333 try self.setRegOrMem(self.air.typeOfIndex(block), new_mcv, operand_mcv);
53345334 break :blk new_mcv;