summaryrefslogtreecommitdiff
path: root/src/asm2wasm.h
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2015-11-13 21:27:25 -0800
committerAlon Zakai <alonzakai@gmail.com>2015-11-13 21:28:55 -0800
commitf08d6fbd7c24dc9dc07081c72869095dab3647ea (patch)
treeda8d75b70d1c809d066a79316cbdbf1d77a30df5 /src/asm2wasm.h
parent514a7e8b88b727bfa0871b5df0ba362fa6b529fb (diff)
downloadbinaryen-f08d6fbd7c24dc9dc07081c72869095dab3647ea.tar.gz
binaryen-f08d6fbd7c24dc9dc07081c72869095dab3647ea.tar.bz2
binaryen-f08d6fbd7c24dc9dc07081c72869095dab3647ea.zip
set seq type properly in asm2wasm
Diffstat (limited to 'src/asm2wasm.h')
-rw-r--r--src/asm2wasm.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/asm2wasm.h b/src/asm2wasm.h
index ce5b669d1..c28d60a75 100644
--- a/src/asm2wasm.h
+++ b/src/asm2wasm.h
@@ -963,6 +963,7 @@ Function* Asm2WasmBuilder::processFunction(Ref ast) {
auto ret = allocator.alloc<Block>();
ret->list.push_back(process(ast[1]));
ret->list.push_back(process(ast[2]));
+ ret->type = ret->list[1]->type;
return ret;
} else if (what == SWITCH) {
// XXX switch is still in flux in the spec repo, just emit a placeholder