Skip to content

Commit ea9a7b2

Browse files
authored
refactor: Drop unused op_array param from zend_get_brk_cont_target() (GH-19117)
1 parent b08753e commit ea9a7b2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Zend/zend_opcode.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -709,7 +709,7 @@ static void zend_check_finally_breakout(zend_op_array *op_array, uint32_t op_num
709709
}
710710
}
711711

712-
static uint32_t zend_get_brk_cont_target(const zend_op_array *op_array, const zend_op *opline) {
712+
static uint32_t zend_get_brk_cont_target(const zend_op *opline) {
713713
int nest_levels = opline->op2.num;
714714
int array_offset = opline->op1.num;
715715
zend_brk_cont_element *jmp_to;
@@ -1120,7 +1120,7 @@ ZEND_API void pass_two(zend_op_array *op_array)
11201120
case ZEND_BRK:
11211121
case ZEND_CONT:
11221122
{
1123-
uint32_t jmp_target = zend_get_brk_cont_target(op_array, opline);
1123+
uint32_t jmp_target = zend_get_brk_cont_target(opline);
11241124

11251125
if (op_array->fn_flags & ZEND_ACC_HAS_FINALLY_BLOCK) {
11261126
zend_check_finally_breakout(op_array, opline - op_array->opcodes, jmp_target);

0 commit comments

Comments
 (0)