Prevent replay of buffer operation for PHI operands.

Contributed by XmiliaH.
This commit is contained in:
Mike Pall 2022-01-16 21:00:24 +01:00
parent 2c218bf756
commit 1dddc55ca3

View File

@ -605,7 +605,7 @@ LJFOLDF(bufput_bufstr)
return ref; return ref;
} }
/* Replay puts to global temporary buffer. */ /* Replay puts to global temporary buffer. */
if (IR(hdr)->op2 == IRBUFHDR_RESET) { if (IR(hdr)->op2 == IRBUFHDR_RESET && !irt_isphi(fright->t)) {
IRIns *ir = IR(fright->op1); IRIns *ir = IR(fright->op1);
/* For now only handle single string.reverse .lower .upper .rep. */ /* For now only handle single string.reverse .lower .upper .rep. */
if (ir->o == IR_CALLL && if (ir->o == IR_CALLL &&