diff options
-rw-r--r-- | src/lj_opt_fold.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lj_opt_fold.c b/src/lj_opt_fold.c index e3fe8bbf..0c5a4a6a 100644 --- a/src/lj_opt_fold.c +++ b/src/lj_opt_fold.c | |||
@@ -605,7 +605,7 @@ LJFOLDF(bufput_bufstr) | |||
605 | return ref; | 605 | return ref; |
606 | } | 606 | } |
607 | /* Replay puts to global temporary buffer. */ | 607 | /* Replay puts to global temporary buffer. */ |
608 | if (IR(hdr)->op2 == IRBUFHDR_RESET) { | 608 | if (IR(hdr)->op2 == IRBUFHDR_RESET && !irt_isphi(fright->t)) { |
609 | IRIns *ir = IR(fright->op1); | 609 | IRIns *ir = IR(fright->op1); |
610 | /* For now only handle single string.reverse .lower .upper .rep. */ | 610 | /* For now only handle single string.reverse .lower .upper .rep. */ |
611 | if (ir->o == IR_CALLL && | 611 | if (ir->o == IR_CALLL && |