diff options
Diffstat (limited to 'src/s2wasm.h')
-rw-r--r-- | src/s2wasm.h | 2 |
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")) { |