From f08d6fbd7c24dc9dc07081c72869095dab3647ea Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Fri, 13 Nov 2015 21:27:25 -0800 Subject: set seq type properly in asm2wasm --- src/asm2wasm.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src') 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(); 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 -- cgit v1.2.3