mirror of
https://github.com/ziglang/zig.git
synced 2025-12-27 00:23:22 +00:00
x86_64: handle ptr_stack_offset for blocks
This commit is contained in:
parent
1d57b347e9
commit
28f525baa4
@ -5328,7 +5328,7 @@ fn br(self: *Self, block: Air.Inst.Index, operand: Air.Inst.Ref) !void {
|
||||
block_data.mcv = switch (operand_mcv) {
|
||||
.none, .dead, .unreach => unreachable,
|
||||
.register, .stack_offset, .memory => operand_mcv,
|
||||
.eflags, .immediate => blk: {
|
||||
.eflags, .immediate, .ptr_stack_offset => blk: {
|
||||
const new_mcv = try self.allocRegOrMem(block, true);
|
||||
try self.setRegOrMem(self.air.typeOfIndex(block), new_mcv, operand_mcv);
|
||||
break :blk new_mcv;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user