summaryrefslogtreecommitdiff
path: root/src/asm2wasm.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/asm2wasm.h')
-rw-r--r--src/asm2wasm.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/asm2wasm.h b/src/asm2wasm.h
index 9bf677e6f..836b8044a 100644
--- a/src/asm2wasm.h
+++ b/src/asm2wasm.h
@@ -998,6 +998,8 @@ void Asm2WasmBuilder::processAsm(Ref ast) {
memoryImport->module = ENV;
memoryImport->base = MEMORY;
memoryImport->kind = ExternalKind::Memory;
+ wasm.memory.exists = true;
+ wasm.memory.imported = true;
wasm.addImport(memoryImport.release());
// import table