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 3d0e35a6..5dc7ae3d 100644 --- a/src/lj_opt_fold.c +++ b/src/lj_opt_fold.c | |||
@@ -1052,7 +1052,7 @@ LJFOLDF(simplify_conv_sext) | |||
1052 | if (ref == J->scev.idx) { | 1052 | if (ref == J->scev.idx) { |
1053 | IRRef lo = J->scev.dir ? J->scev.start : J->scev.stop; | 1053 | IRRef lo = J->scev.dir ? J->scev.start : J->scev.stop; |
1054 | lua_assert(irt_isint(J->scev.t)); | 1054 | lua_assert(irt_isint(J->scev.t)); |
1055 | if (lo && IR(lo)->i + ofs >= 0) { | 1055 | if (lo && IR(lo)->o == IR_KINT && IR(lo)->i + ofs >= 0) { |
1056 | ok_reduce: | 1056 | ok_reduce: |
1057 | #if LJ_TARGET_X64 | 1057 | #if LJ_TARGET_X64 |
1058 | /* Eliminate widening. All 32 bit ops do an implicit zero-extension. */ | 1058 | /* Eliminate widening. All 32 bit ops do an implicit zero-extension. */ |