From 6933937a5f4c9e84ddd984d23d765733c59e8c0f Mon Sep 17 00:00:00 2001 From: Dmitry Stogov Date: Wed, 17 Apr 2024 09:09:42 +0300 Subject: [PATCH] Reload insn, because buffer may be reallocated Fixes PHP nightly test failures in AMPHP and Symfony unit tests --- ir_sccp.c | 1 + 1 file changed, 1 insertion(+) diff --git a/ir_sccp.c b/ir_sccp.c index 21b6335..5e19e2a 100644 --- a/ir_sccp.c +++ b/ir_sccp.c @@ -1172,6 +1172,7 @@ int ir_sccp(ir_ctx *ctx) /* not changed */ continue; } else if (_values[i].optx == IR_BOTTOM) { + insn = &ctx->ir_base[i]; if (insn->op == IR_FP2FP || insn->op == IR_FP2INT || insn->op == IR_TRUNC || insn->op == IR_ZEXT || insn->op == IR_SEXT) { ir_bitqueue_add(&worklist2, i);