diff options
author | Benjamin Bouvier <public@benj.me> | 2016-10-13 19:41:59 +0200 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2016-10-13 10:41:59 -0700 |
commit | 95d00d699c9e05b8a04885d019a09d8d2eebd0b5 (patch) | |
tree | 7a8426152e015ba1f614f5492472e0d0084d81f6 /src/asm2wasm.h | |
parent | b4d7c60d82fc336e401026e7ba6dd67138259ae2 (diff) | |
download | binaryen-95d00d699c9e05b8a04885d019a09d8d2eebd0b5.tar.gz binaryen-95d00d699c9e05b8a04885d019a09d8d2eebd0b5.tar.bz2 binaryen-95d00d699c9e05b8a04885d019a09d8d2eebd0b5.zip |
Don't create a memory section for an imported memory; fixes #772 (#773)
Diffstat (limited to 'src/asm2wasm.h')
-rw-r--r-- | src/asm2wasm.h | 2 |
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 |