summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/asm2wasm.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/asm2wasm.cpp b/src/asm2wasm.cpp
index 3f6173adf..9a7d36ae5 100644
--- a/src/asm2wasm.cpp
+++ b/src/asm2wasm.cpp
@@ -1037,6 +1037,7 @@ Function* Asm2WasmModule::processFunction(Ref ast) {
ret->condition = process(ast[1]);
ret->ifTrue = process(ast[2]);
ret->ifFalse = process(ast[3]);
+ ret->type = ret->ifTrue->type;
return ret;
} else if (what == SEQ) {
auto ret = allocator.alloc<Block>();