1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00

ext/opcache/jit: Fix -Wundef warning for HAVE_CAPSTONE

All other times this symbol is references #ifdef is used
This commit is contained in:
Gina Peter Banyard
2024-06-10 14:17:58 +01:00
parent 193d3850b2
commit 7130a174bb

View File

@@ -16011,7 +16011,7 @@ static void *zend_jit_finish(zend_jit_ctx *jit)
entry = zend_jit_ir_compile(&jit->ctx, &size, str ? ZSTR_VAL(str) : NULL);
if (entry) {
if (JIT_G(debug) & (ZEND_JIT_DEBUG_ASM|ZEND_JIT_DEBUG_GDB|ZEND_JIT_DEBUG_PERF|ZEND_JIT_DEBUG_PERF_DUMP)) {
#if HAVE_CAPSTONE
#ifdef HAVE_CAPSTONE
if (JIT_G(debug) & ZEND_JIT_DEBUG_ASM) {
if (str) {
ir_disasm_add_symbol(ZSTR_VAL(str), (uintptr_t)entry, size);