Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fold: keep type of emitted CONV in sync with its mode
When emitting CONV make sure that its type matches its destination IRType. This keeps IR fully internally consistent with respect to types - i.e. if we push narrowing CONV Dt.St upwards through an arithmetic operation of type St we end up with arithmetic operation of type Dt and two convertions CONV Dt.St which narrow the operands. Igor Munkin: * added a test for the problem * backported the original patch to tarantool/luajit repo * stripped some words not related to the patch itself Fixes LuaJIT#524 Signed-off-by: Vyacheslav Egorov <[email protected]> Signed-off-by: Igor Munkin <[email protected]>
- Loading branch information