mirror of
https://github.com/LuaJIT/LuaJIT.git
synced 2025-02-07 23:24:09 +00:00
Prevent replay of buffer operation for PHI operands.
Contributed by XmiliaH.
This commit is contained in:
parent
2c218bf756
commit
1dddc55ca3
@ -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 &&
|
||||||
|
Loading…
Reference in New Issue
Block a user