summaryrefslogtreecommitdiff
path: root/src/wasm-builder.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/wasm-builder.h')
-rw-r--r--src/wasm-builder.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wasm-builder.h b/src/wasm-builder.h
index e25dafc60..5d4c90840 100644
--- a/src/wasm-builder.h
+++ b/src/wasm-builder.h
@@ -45,7 +45,7 @@ public:
WasmType resultType,
std::vector<NameType>&& vars,
Expression* body = nullptr) {
- auto* func = allocator.alloc<Function>();
+ auto* func = new Function;
func->name = name;
func->result = resultType;
func->body = body;