Index: src/wasm/wasm-module.cc |
diff --git a/src/wasm/wasm-module.cc b/src/wasm/wasm-module.cc |
index 3ac9c832eb749b61fd78ef3fe4186a1313493ac2..18c30554f381a78a819b07882c2cd7fa9da5536d 100644 |
--- a/src/wasm/wasm-module.cc |
+++ b/src/wasm/wasm-module.cc |
@@ -540,8 +540,8 @@ static void InstanceFinalizer(const v8::WeakCallbackInfo<void>& data) { |
TRACE("}\n"); |
DCHECK(!current_template->has_weak_prev_instance()); |
- WeakCell* next = compiled_module->ptr_to_weak_next_instance(); |
- WeakCell* prev = compiled_module->ptr_to_weak_prev_instance(); |
+ WeakCell* next = compiled_module->maybe_ptr_to_weak_next_instance(); |
+ WeakCell* prev = compiled_module->maybe_ptr_to_weak_prev_instance(); |
if (current_template == compiled_module) { |
if (next == nullptr) { |