Skip to content

Commit c6c1682

Browse files
committed
Fixed tracing JIT crash in case SSA for op_array is not provided
1 parent a34fd4d commit c6c1682

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/opcache/jit/zend_jit_x86.dasc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11856,7 +11856,7 @@ static int zend_jit_switch(dasm_State **Dst, const zend_op *opline, const zend_o
1185611856
zend_jit_addr op1_addr = OP1_ADDR();
1185711857
const zend_op *default_opline = ZEND_OFFSET_TO_OPLINE(opline, opline->extended_value);
1185811858
const zend_op *target;
11859-
int default_b = ssa->cfg.map[default_opline - op_array->opcodes];
11859+
int default_b = next_opline ? -1 : ssa->cfg.map[default_opline - op_array->opcodes];
1186011860
int b;
1186111861
zval *val;
1186211862
int32_t exit_point;

0 commit comments

Comments
 (0)