Prevent replay of buffer operation for PHI operands.

Contributed by XmiliaH.
master
Mike Pall 2022-01-16 21:00:24 +01:00
parent 2c218bf756
commit 1dddc55ca3
1 changed files with 1 additions and 1 deletions

View File

@ -605,7 +605,7 @@ LJFOLDF(bufput_bufstr)
return ref;
}
/* 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);
/* For now only handle single string.reverse .lower .upper .rep. */
if (ir->o == IR_CALLL &&