From 7e940823d56670d3b2cc2ed1df5eedade472811e Mon Sep 17 00:00:00 2001 From: Dmitry Stogov Date: Thu, 25 Jun 2020 21:59:48 +0300 Subject: [PATCH] Fixed incorrect type guard --- ext/opcache/jit/zend_jit_x86.dasc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)) { -- 2.50.1