diff options
author | Alon Zakai <alonzakai@gmail.com> | 2015-11-17 21:29:55 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2015-11-17 21:29:55 -0800 |
commit | a88651b6b9853c62fdc8e38948375fe894172298 (patch) | |
tree | cf80d8fce3bd24282097714b216d261bd9fea39f /src | |
parent | ea0015403b3695d873a2c7eabc6fcdf0641b8e2e (diff) | |
download | binaryen-a88651b6b9853c62fdc8e38948375fe894172298.tar.gz binaryen-a88651b6b9853c62fdc8e38948375fe894172298.tar.bz2 binaryen-a88651b6b9853c62fdc8e38948375fe894172298.zip |
handle fround call coercion
Diffstat (limited to 'src')
-rw-r--r-- | src/asm2wasm.h | 5 |
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; |