Skip to content

Commit

Permalink
Reload insn, because buffer may be reallocated
Browse files Browse the repository at this point in the history
Fixes PHP nightly test failures in AMPHP and Symfony unit tests
  • Loading branch information
dstogov committed Apr 17, 2024
1 parent a18a185 commit 6933937
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ir_sccp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 6933937

Please sign in to comment.