aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/lj_opt_fold.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lj_opt_fold.c b/src/lj_opt_fold.c
index f35593f3..fc91a75e 100644
--- a/src/lj_opt_fold.c
+++ b/src/lj_opt_fold.c
@@ -547,8 +547,8 @@ LJFOLDF(bufput_kgc)
547 if (len2 == 0) { /* Empty string? */ 547 if (len2 == 0) { /* Empty string? */
548 return LEFTFOLD; 548 return LEFTFOLD;
549 } else { 549 } else {
550 PHIBARRIER(fleft); 550 if (fleft->o == IR_BUFPUT && IR(fleft->op2)->o == IR_KGC &&
551 if (fleft->o == IR_BUFPUT && IR(fleft->op2)->o == IR_KGC) { 551 !irt_isphi(fleft->t)) {
552 /* Join two constant string puts in a row. */ 552 /* Join two constant string puts in a row. */
553 GCstr *s1 = ir_kstr(IR(fleft->op2)); 553 GCstr *s1 = ir_kstr(IR(fleft->op2));
554 MSize len1 = s1->len; 554 MSize len1 = s1->len;