summaryrefslogtreecommitdiff
path: root/src/asm2wasm.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/asm2wasm.h')
-rw-r--r--src/asm2wasm.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/asm2wasm.h b/src/asm2wasm.h
index 71c7447e0..6a3e15b29 100644
--- a/src/asm2wasm.h
+++ b/src/asm2wasm.h
@@ -1331,7 +1331,8 @@ void Asm2WasmBuilder::processAsm(Ref ast) {
// apply memory growth, if relevant
if (preprocessor.memoryGrowth) {
- emscripten::generateMemoryGrowthFunction(wasm);
+ EmscriptenGlueGenerator generator(wasm);
+ generator.generateMemoryGrowthFunction();
wasm.memory.max = Memory::kMaxSize;
}