Skip to content

Commit

Permalink
Fixed incorrect register allocation
Browse files Browse the repository at this point in the history
  • Loading branch information
dstogov committed Sep 5, 2023
1 parent e5fd93e commit 1271dae
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ext/opcache/jit/zend_jit_trace.c
Original file line number Diff line number Diff line change
Expand Up @@ -3172,6 +3172,12 @@ static zend_jit_reg_var* zend_jit_trace_allocate_registers(zend_jit_trace_rec *t
idx++;
while (opline->opcode == ZEND_RECV_INIT) {
/* RECV_INIT doesn't support registers */
#ifdef ZEND_JIT_IR
if (ssa_op->result_use >= 0 && RA_HAS_IVAL(ssa_op->result_use)) {
RA_IVAL_DEL(ssa_op->result_use);
count--;
}
#endif
if (ssa_op->result_def >= 0) {
RA_IVAL_CLOSE(EX_VAR_TO_NUM(opline->result.var), idx);
SET_STACK_VAR(stack, EX_VAR_TO_NUM(opline->result.var), ssa_op->result_def);
Expand Down

0 comments on commit 1271dae

Please sign in to comment.