summaryrefslogtreecommitdiff
path: root/src/lj_record.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lj_record.c')
-rw-r--r--src/lj_record.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lj_record.c b/src/lj_record.c
index e20d142a..2bfd2608 100644
--- a/src/lj_record.c
+++ b/src/lj_record.c
@@ -1860,8 +1860,9 @@ static void rec_setup_forl(jit_State *J, const BCIns *fori)
1860 emitir(IRTGI(IR_GE), step, lj_ir_kint(J, (int32_t)0x80000000-k)); 1860 emitir(IRTGI(IR_GE), step, lj_ir_kint(J, (int32_t)0x80000000-k));
1861 } 1861 }
1862 } else { 1862 } else {
1863 /* Stop+step variable: need full overflow check (with dead result). */ 1863 /* Stop+step variable: need full overflow check. */
1864 emitir(IRTGI(IR_ADDOV), step, stop); 1864 TRef tr = emitir(IRTGI(IR_ADDOV), step, stop);
1865 emitir(IRTI(IR_USE), tr, 0); /* ADDOV is weak. Avoid dead result. */
1865 } 1866 }
1866 } 1867 }
1867 } else if (t == IRT_INT && !tref_isk(stop)) { 1868 } else if (t == IRT_INT && !tref_isk(stop)) {