summaryrefslogtreecommitdiff
path: root/src/asm2wasm.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/asm2wasm.h')
-rw-r--r--src/asm2wasm.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/asm2wasm.h b/src/asm2wasm.h
index 3d430d712..5865fd901 100644
--- a/src/asm2wasm.h
+++ b/src/asm2wasm.h
@@ -905,10 +905,13 @@ Function* Asm2WasmBuilder::processFunction(Ref ast) {
ret->op = ConvertSInt32;
} else if (ret->value->type == f32) {
return ret->value;
+ } else if (ret->value->type == none) { // call, etc.
+ ret->value->type = f32;
+ return ret->value;
} else {
abort_on("confusing fround target", ast[2][0]);
}
- ret->type = WasmType::f32;
+ ret->type = f32;
return ret;
}
Call* ret;