mirror of
https://github.com/LuaJIT/LuaJIT.git
synced 2025-02-07 15:14:08 +00:00
Fix FOLD rule for BUFHDR append.
Reported by XmiliaH.
This commit is contained in:
parent
be251d9149
commit
bc1bdbf620
@ -597,7 +597,8 @@ LJFOLDF(bufput_bufstr)
|
||||
/* New buffer, no other buffer op inbetween and same buffer? */
|
||||
if (fleft->o == IR_BUFHDR && fleft->op2 == IRBUFHDR_RESET &&
|
||||
fleft->prev == hdr &&
|
||||
fleft->op1 == IR(hdr)->op1) {
|
||||
fleft->op1 == IR(hdr)->op1 &&
|
||||
!(irt_isphi(fright->t) && IR(hdr)->prev)) {
|
||||
IRRef ref = fins->op1;
|
||||
IR(ref)->op2 = IRBUFHDR_APPEND; /* Modify BUFHDR. */
|
||||
IR(ref)->op1 = fright->op1;
|
||||
|
Loading…
Reference in New Issue
Block a user