summaryrefslogtreecommitdiff
path: root/src/wasm-linker.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/wasm-linker.h')
-rw-r--r--src/wasm-linker.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wasm-linker.h b/src/wasm-linker.h
index ab336e581..07f270d69 100644
--- a/src/wasm-linker.h
+++ b/src/wasm-linker.h
@@ -246,7 +246,7 @@ class Linker {
return;
}
if (out.wasm.checkExport(name)) return; // Already exported
- auto exp = out.wasm.allocator.alloc<Export>();
+ auto exp = new Export;
exp->name = exp->value = name;
out.wasm.addExport(exp);
}