diff options
Diffstat (limited to 'src')
-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 acbf36a5..9873b47e 100644 --- a/src/lj_opt_fold.c +++ b/src/lj_opt_fold.c | |||
@@ -1227,7 +1227,7 @@ LJFOLDF(simplify_conv_sext) | |||
1227 | if (ref == J->scev.idx) { | 1227 | if (ref == J->scev.idx) { |
1228 | IRRef lo = J->scev.dir ? J->scev.start : J->scev.stop; | 1228 | IRRef lo = J->scev.dir ? J->scev.start : J->scev.stop; |
1229 | lua_assert(irt_isint(J->scev.t)); | 1229 | lua_assert(irt_isint(J->scev.t)); |
1230 | if (lo && IR(lo)->i + ofs >= 0) { | 1230 | if (lo && IR(lo)->o == IR_KINT && IR(lo)->i + ofs >= 0) { |
1231 | ok_reduce: | 1231 | ok_reduce: |
1232 | #if LJ_TARGET_X64 | 1232 | #if LJ_TARGET_X64 |
1233 | /* Eliminate widening. All 32 bit ops do an implicit zero-extension. */ | 1233 | /* Eliminate widening. All 32 bit ops do an implicit zero-extension. */ |