| Index: src/compiler/wasm-compiler.cc
|
| diff --git a/src/compiler/wasm-compiler.cc b/src/compiler/wasm-compiler.cc
|
| index c4bde203fa71de431a8f4c0d7382348b3928504e..774dcb318d8590f3d51956d57f4da9d53feb7939 100644
|
| --- a/src/compiler/wasm-compiler.cc
|
| +++ b/src/compiler/wasm-compiler.cc
|
| @@ -2182,13 +2182,15 @@ Node* WasmGraphBuilder::MemBuffer(uint32_t offset) {
|
| DCHECK(module_ && module_->instance);
|
| if (offset == 0) {
|
| if (!mem_buffer_) {
|
| - mem_buffer_ = jsgraph()->IntPtrConstant(
|
| - reinterpret_cast<uintptr_t>(module_->instance->mem_start));
|
| + mem_buffer_ = jsgraph()->RelocatableIntPtrConstant(
|
| + reinterpret_cast<uintptr_t>(module_->instance->mem_start),
|
| + RelocInfo::WASM_MEMORY_REFERENCE);
|
| }
|
| return mem_buffer_;
|
| } else {
|
| - return jsgraph()->IntPtrConstant(
|
| - reinterpret_cast<uintptr_t>(module_->instance->mem_start + offset));
|
| + return jsgraph()->RelocatableIntPtrConstant(
|
| + reinterpret_cast<uintptr_t>(module_->instance->mem_start + offset),
|
| + RelocInfo::WASM_MEMORY_REFERENCE);
|
| }
|
| }
|
|
|
|
|