Fix alias check in lj_opt_fwd_alen

This commit is contained in:
Maxim Sokolov 2022-05-19 11:51:37 -07:00
parent 91bc6b8ad1
commit 41b9664093

View File

@ -432,7 +432,7 @@ TRef LJ_FASTCALL lj_opt_fwd_alen(jit_State *J)
fins->op2 = aref->op2; /* Set ALEN hint. */
}
goto doemit; /* Conflicting store, possibly giving a hint. */
} else if (aa_table(J, tab, fref->op1) == ALIAS_NO) {
} else if (aa_table(J, tab, fref->op1) != ALIAS_NO) {
goto doemit; /* Conflicting store. */
}
sref = store->prev;