summaryrefslogtreecommitdiff
path: root/src/asm2wasm.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/asm2wasm.h')
-rw-r--r--src/asm2wasm.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/asm2wasm.h b/src/asm2wasm.h
index a2d68369f..3baf09329 100644
--- a/src/asm2wasm.h
+++ b/src/asm2wasm.h
@@ -470,7 +470,7 @@ void Asm2WasmBuilder::processAsm(Ref ast) {
}
} else if (curr[0] == DEFUN) {
// function
- wasm.functions.push_back(processFunction(curr));
+ wasm.addFunction(processFunction(curr));
} else if (curr[0] == RETURN) {
// exports
Ref object = curr[1];