diff options
Diffstat (limited to 'src/asm2wasm.cpp')
-rw-r--r-- | src/asm2wasm.cpp | 1 |
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>(); |