This repository has been archived by the owner. It is now read-only.
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
Alternative fix for #37 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. Previous variantion of the fix introduced slight inconsistency with types (inserted convertions were CONV int.St while arithmetic operation was still of type Dt).
- Loading branch information