Skip to content

Commit 226617d

Browse files
committed
Update abstarct stack before guard to keep proper type in side trace
1 parent 274131e commit 226617d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ext/opcache/jit/zend_jit_trace.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4125,6 +4125,7 @@ static const void *zend_jit_trace(zend_jit_trace_rec *trace_buffer, uint32_t par
41254125
}
41264126
if (opline->op1_type != IS_CONST
41274127
&& (p+1)->op == ZEND_JIT_TRACE_INIT_CALL && (p+1)->func) {
4128+
SET_STACK_TYPE(stack, EX_VAR_TO_NUM(opline->result.var), IS_OBJECT);
41284129
if (!zend_jit_init_fcall_guard(&dasm_state, opline, (p+1)->func, opline+1)) {
41294130
goto jit_failure;
41304131
}

0 commit comments

Comments
 (0)