diff options
author | Wouter van Oortmerssen <aardappel@gmail.com> | 2021-02-25 13:18:34 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-25 13:18:34 -0800 |
commit | 7977ad58a367f49555c70ea5f0f0f6ab06b28903 (patch) | |
tree | 92afec6d6555f653c863a372fbfddcc66fd1d9ba /src/wasm/wasm-binary.cpp | |
parent | 04c1515acb354714af3d07fe2a3b65b2bb0398ab (diff) | |
download | binaryen-7977ad58a367f49555c70ea5f0f0f6ab06b28903.tar.gz binaryen-7977ad58a367f49555c70ea5f0f0f6ab06b28903.tar.bz2 binaryen-7977ad58a367f49555c70ea5f0f0f6ab06b28903.zip |
Support 64-bit data segment init-exps in Memory64 (#3593)
This as a consequence of https://reviews.llvm.org/D95651
Diffstat (limited to 'src/wasm/wasm-binary.cpp')
-rw-r--r-- | src/wasm/wasm-binary.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wasm/wasm-binary.cpp b/src/wasm/wasm-binary.cpp index 0f5a03117..ebc5888a0 100644 --- a/src/wasm/wasm-binary.cpp +++ b/src/wasm/wasm-binary.cpp @@ -1354,7 +1354,7 @@ WasmBinaryBuilder::getByteView(size_t size) { throwError("unexpected end of input"); } pos += size; - return {&input[pos - size], &input[pos]}; + return {input.data() + (pos - size), input.data() + pos}; } uint8_t WasmBinaryBuilder::getInt8() { |