diff options
author | Alon Zakai <alonzakai@gmail.com> | 2015-10-29 17:35:43 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2015-10-29 17:35:43 -0700 |
commit | 58df6d31beaedacbd7e6d017b12cd31d088d9339 (patch) | |
tree | e3912fb3a568fdc9ba5e639dafc12d24a22a5f1f /src/asm2wasm.cpp | |
parent | ec5e1d0ffdc2769d754cc7c679c3b286f787bb6e (diff) | |
download | binaryen-58df6d31beaedacbd7e6d017b12cd31d088d9339.tar.gz binaryen-58df6d31beaedacbd7e6d017b12cd31d088d9339.tar.bz2 binaryen-58df6d31beaedacbd7e6d017b12cd31d088d9339.zip |
fix conditional type
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>(); |