Commit 547a26bd170 for php
commit 547a26bd170d9a4994e73139df64a4369a91fb8c
Author: Weilin Du <weilindu@php.net>
Date: Fri Oct 23 07:56:29 2026 +0800
JIT: Fix Windows build of zend_jit_ir.c
Forward-declare jit_CONST_ADDR() before its use through ir_CONST_ADDR() in jit_TLS(). This avoids MSVC warning C4013, which fails Windows ZTS builds with /WX.
diff --git a/ext/opcache/jit/zend_jit_ir.c b/ext/opcache/jit/zend_jit_ir.c
index 7e2b9f8e14c..770eff65029 100644
--- a/ext/opcache/jit/zend_jit_ir.c
+++ b/ext/opcache/jit/zend_jit_ir.c
@@ -358,6 +358,8 @@ static int zend_jit_assign_to_variable(zend_jit_ctx *jit,
zend_jit_addr ref_addr,
bool check_exception);
+static ir_ref jit_CONST_ADDR(zend_jit_ctx *jit, uintptr_t addr);
+
static ir_ref jit_CONST_FUNC(zend_jit_ctx *jit, uintptr_t addr, uint16_t flags);
static ir_ref jit_ADD_OFFSET(zend_jit_ctx *jit, ir_ref addr, uintptr_t offset);