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/wasm.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/wasm.h')
-rw-r--r-- | src/wasm.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/wasm.h b/src/wasm.h index 0f542294c..44326948b 100644 --- a/src/wasm.h +++ b/src/wasm.h @@ -1502,7 +1502,11 @@ public: Address initial, max; // sizes are in pages std::vector<Segment> segments; - Memory() : initial(0), max(kMaxSize) { + // See comment in Table. + bool exists; + bool imported; + + Memory() : initial(0), max(kMaxSize), exists(false), imported(false) { name = Name::fromInt(0); } }; |