Skip to content

Commit 6e52472

Browse files
committed
Fixed JIT for ext/opcache/tests/jit/cmp_004.phpt with opcache.jit=1201
1 parent d2f8114 commit 6e52472

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/opcache/jit/zend_jit.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2941,7 +2941,7 @@ static int zend_jit(const zend_op_array *op_array, zend_ssa *ssa, const zend_op
29412941
break;
29422942
case ZEND_JMPZ:
29432943
case ZEND_JMPNZ:
2944-
if (opline > op_array->opcodes &&
2944+
if (opline > op_array->opcodes + ssa->cfg.blocks[b].start &&
29452945
((opline-1)->result_type & (IS_SMART_BRANCH_JMPZ|IS_SMART_BRANCH_JMPNZ)) != 0) {
29462946
/* smart branch */
29472947
if (!zend_jit_cond_jmp(&dasm_state, opline + 1, ssa->cfg.blocks[b].successors[0])) {

0 commit comments

Comments
 (0)