summaryrefslogtreecommitdiff
path: root/src/s2wasm.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/s2wasm.h')
-rw-r--r--src/s2wasm.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/s2wasm.h b/src/s2wasm.h
index ff3c1f29f..d0dbe8c6a 100644
--- a/src/s2wasm.h
+++ b/src/s2wasm.h
@@ -1066,7 +1066,7 @@ class S2WasmBuilder {
} else if (match("unreachable")) {
addToBlock(allocator.alloc<Unreachable>());
} else if (match("memory_size")) {
- makeHost(MemorySize);
+ makeHost(CurrentMemory);
} else if (match("grow_memory")) {
makeHost1(GrowMemory);
} else if (match(".Lfunc_end")) {