Skip to content

Commit 2e5e03b

Browse files
committed
Call info should be removed, but at least we should prevent incorrect stack adjustment.
1 parent 1ee9110 commit 2e5e03b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

ext/opcache/Optimizer/sccp.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1293,6 +1293,9 @@ static int replace_constant_operands(sccp_ctx *ctx) {
12931293
&ssa->ops[call->arg_info[i].opline - op_array->opcodes]);
12941294
}
12951295
removed_ops = call->num_args + 2;
1296+
1297+
// TODO: remove call_info completely???
1298+
call->callee_func = NULL;
12961299
} else {
12971300
/* Ordinary computational instruction -> remove it */
12981301
zend_ssa_remove_result_def(ssa, ssa_op);

0 commit comments

Comments
 (0)