Fix spill slot comparison

This commit is contained in:
Dmitry Stogov 2022-05-18 23:44:59 +03:00
parent cdd39f22b0
commit 177e556754

View File

@ -1720,7 +1720,7 @@ static bool ir_is_same_mem(ir_ctx *ctx, ir_ref r1, ir_ref r2)
o1 = ival1->stack_spill_pos;
o2 = ival2->stack_spill_pos;
IR_ASSERT(o1 != -1 && o2 != -1);
return o1 == o2 && o1;
return o1 == o2;
}
static void ir_emit_mov(ir_ctx *ctx, ir_type type, ir_reg dst, ir_reg src)