Pass rounding mode from i->flags for OPCODE_CONVERT

This commit is contained in:
Dr. Chat 2015-12-02 14:03:15 -06:00
parent 17d18f7154
commit bc1e7684ca
1 changed files with 1 additions and 1 deletions

View File

@ -157,7 +157,7 @@ bool ConstantPropagationPass::Run(HIRBuilder* builder) {
if (i->src1.value->IsConstant()) {
TypeName target_type = v->type;
v->set_from(i->src1.value);
v->Convert(target_type, ROUND_TO_NEAREST);
v->Convert(target_type, RoundMode(i->flags));
i->Remove();
}
break;