Skip to content

Commit

Permalink
Tracing JIT: Fixed failure on non-optimized op_arrays (op_array->T ma…
Browse files Browse the repository at this point in the history
…y be above ssa->vars_count)
  • Loading branch information
dstogov committed Nov 15, 2021
1 parent 4a26563 commit 85066fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/opcache/jit/zend_jit_trace.c
Original file line number Diff line number Diff line change
Expand Up @@ -1423,7 +1423,7 @@ static zend_ssa *zend_jit_trace_build_tssa(zend_jit_trace_rec *trace_buffer, uin
while (i < op_array->last_var + op_array->T) {
if (!ssa->var_info
|| !zend_jit_trace_copy_ssa_var_info(op_array, ssa, ssa_opcodes, tssa, i)) {
if (ssa->vars) {
if (ssa->vars && i < ssa->vars_count) {
ssa_vars[i].alias = ssa->vars[i].alias;
} else {
ssa_vars[i].alias = zend_jit_var_may_alias(op_array, ssa, i);
Expand Down

0 comments on commit 85066fd

Please sign in to comment.