aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lj_opt_fold.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lj_opt_fold.c b/src/lj_opt_fold.c
index 77293fb5..a3af3102 100644
--- a/src/lj_opt_fold.c
+++ b/src/lj_opt_fold.c
@@ -1986,7 +1986,8 @@ LJFOLDF(merge_eqne_snew_kgc)
1986 if (len <= FOLD_SNEW_MAX_LEN) { 1986 if (len <= FOLD_SNEW_MAX_LEN) {
1987 IROp op = (IROp)fins->o; 1987 IROp op = (IROp)fins->o;
1988 IRRef strref = fleft->op1; 1988 IRRef strref = fleft->op1;
1989 lua_assert(IR(strref)->o == IR_STRREF); 1989 if (IR(strref)->o != IR_STRREF)
1990 return NEXTFOLD;
1990 if (op == IR_EQ) { 1991 if (op == IR_EQ) {
1991 emitir(IRTGI(IR_EQ), fleft->op2, lj_ir_kint(J, len)); 1992 emitir(IRTGI(IR_EQ), fleft->op2, lj_ir_kint(J, len));
1992 /* Caveat: fins/fleft/fright is no longer valid after emitir. */ 1993 /* Caveat: fins/fleft/fright is no longer valid after emitir. */