Skip to content

Commit e1959a1

Browse files
committed
Simplify function loopkup
1 parent 615ebdd commit e1959a1

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

Zend/Optimizer/sccp.c

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1722,14 +1722,8 @@ static void sccp_visit_instr(scdf_ctx *scdf, zend_op *opline, zend_ssa_op *ssa_o
17221722
break;
17231723
}
17241724

1725-
if (!ctx->call_map) {
1726-
SET_RESULT_BOT(result);
1727-
break;
1728-
}
1729-
17301725
zval *args[3] = {NULL};
1731-
zend_call_info *call = ctx->call_map[opline - ctx->scdf.op_array->opcodes];
1732-
zend_function *func = call->callee_func;
1726+
zend_function *func = ZEND_FLF_FUNC(opline);
17331727
uint32_t num_args = ZEND_FLF_NUM_ARGS(opline->opcode);
17341728

17351729
switch (num_args) {

0 commit comments

Comments
 (0)