From: Dmitry Stogov Date: Thu, 25 Jun 2020 18:59:48 +0000 (+0300) Subject: Fixed incorrect type guard X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7e940823d56670d3b2cc2ed1df5eedade472811e;p=php Fixed incorrect type guard --- diff --git a/ext/opcache/jit/zend_jit_x86.dasc b/ext/opcache/jit/zend_jit_x86.dasc index 16332720d0..30411d0724 100644 --- a/ext/opcache/jit/zend_jit_x86.dasc +++ b/ext/opcache/jit/zend_jit_x86.dasc @@ -11524,7 +11524,7 @@ static zend_bool zend_jit_fetch_reference(dasm_State **Dst, const zend_op *oplin var_addr = ZEND_ADDR_MEM_ZVAL(ZREG_FCARG1a, 0); *var_addr_ptr = var_addr; - var_type &= ~IS_TRACE_REFERENCE; + var_type &= ~(IS_TRACE_REFERENCE|IS_TRACE_INDIRECT); if (add_type_guard && var_type != IS_UNKNOWN && (var_info & (MAY_BE_ANY|MAY_BE_UNDEF)) != (1 << var_type)) {