Skip to content

Commit

Permalink
Merge branch 'master' into v2.1
Browse files Browse the repository at this point in the history
(cherry picked from commit 4b17a6a)
  • Loading branch information
Mike Pall authored and lukego committed Jan 17, 2018
1 parent f6c52a3 commit 91dbe23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lj_opt_fold.c
Original file line number Diff line number Diff line change
Expand Up @@ -1168,7 +1168,7 @@ LJFOLDF(simplify_conv_sext)
if (ref == J->scev.idx) {
IRRef lo = J->scev.dir ? J->scev.start : J->scev.stop;
lua_assert(irt_isint(J->scev.t));
if (lo && IR(lo)->i + ofs >= 0) {
if (lo && IR(lo)->o == IR_KINT && IR(lo)->i + ofs >= 0) {
ok_reduce:
/* Eliminate widening. All 32 bit ops do an implicit zero-extension. */
return LEFTFOLD;
Expand Down

0 comments on commit 91dbe23

Please sign in to comment.