From 967c1e4181702f6058b7bfbad1d6ed54887813b7 Mon Sep 17 00:00:00 2001 From: "Alon Zakai (kripken)" Date: Wed, 4 Jan 2017 16:25:06 -0800 Subject: mark memory as existing when it is created in the C API --- src/binaryen-c.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/binaryen-c.cpp') diff --git a/src/binaryen-c.cpp b/src/binaryen-c.cpp index b8933147f..ab9470f19 100644 --- a/src/binaryen-c.cpp +++ b/src/binaryen-c.cpp @@ -808,6 +808,7 @@ void BinaryenSetMemory(BinaryenModuleRef module, BinaryenIndex initial, Binaryen auto* wasm = (Module*)module; wasm->memory.initial = initial; wasm->memory.max = maximum; + wasm->memory.exists = true; if (exportName) { auto memoryExport = make_unique(); memoryExport->name = exportName; -- cgit v1.2.3