summaryrefslogtreecommitdiff
path: root/src/wasm2asm.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/wasm2asm.h')
-rw-r--r--src/wasm2asm.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/wasm2asm.h b/src/wasm2asm.h
index ca2bed20c..e26652963 100644
--- a/src/wasm2asm.h
+++ b/src/wasm2asm.h
@@ -132,6 +132,7 @@ private:
Ref Wasm2AsmBuilder::processWasm(Module* wasm) {
Ref ret = ValueBuilder::makeToplevel();
Ref asmFunc = ValueBuilder::makeFunction(ASM_FUNC);
+ ret[1]->push_back(asmFunc);
// imports XXX
// exports XXX
// functions