From 58df6d31beaedacbd7e6d017b12cd31d088d9339 Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Thu, 29 Oct 2015 17:35:43 -0700 Subject: fix conditional type --- src/asm2wasm.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/asm2wasm.cpp') 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(); -- cgit v1.2.3