Skip to content

Commit 440894d

Browse files
committed
fix DemoteFloat64 in wasm2asm
1 parent 164805e commit 440894d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/wasm2asm.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -725,7 +725,7 @@ Ref Wasm2AsmBuilder::processFunctionBody(Expression* curr, IString result) {
725725
case PromoteFloat32:
726726
case ConvertSInt32: ret = ValueBuilder::makePrefix(PLUS, value); break;
727727
case ConvertUInt32: ret = ValueBuilder::makePrefix(PLUS, ValueBuilder::makeBinary(value, TRSHIFT, ValueBuilder::makeNum(0))); break;
728-
case DemoteFloat64: break;
728+
case DemoteFloat64: ret = value; break;
729729
default: std::cerr << curr << '\n'; abort();
730730
}
731731
if (curr->type == f32) { // doubles need much less coercing

0 commit comments

Comments
 (0)