Index: src/wasm/wasm-module.cc |
diff --git a/src/wasm/wasm-module.cc b/src/wasm/wasm-module.cc |
index 18c30554f381a78a819b07882c2cd7fa9da5536d..e84da24b6ed7cd81bf548c4c13f5130a92767fe3 100644 |
--- a/src/wasm/wasm-module.cc |
+++ b/src/wasm/wasm-module.cc |
@@ -456,7 +456,7 @@ static void ResetCompiledModule(Isolate* isolate, WasmInstanceObject* owner, |
Object* undefined = *isolate->factory()->undefined_value(); |
uint32_t old_mem_size = compiled_module->mem_size(); |
uint32_t default_mem_size = compiled_module->default_mem_size(); |
- Object* mem_start = compiled_module->ptr_to_memory(); |
+ Object* mem_start = compiled_module->maybe_ptr_to_memory(); |
Address old_mem_address = nullptr; |
Address globals_start = |
GetGlobalStartAddressFromCodeTemplate(undefined, owner); |