Index: src/wasm/wasm-objects.cc |
diff --git a/src/wasm/wasm-objects.cc b/src/wasm/wasm-objects.cc |
index e9e70db568f1e6aba6ecf957b6d45c53ed353b04..679590f39aece1d71a62e679d317c49fc7e9d9e4 100644 |
--- a/src/wasm/wasm-objects.cc |
+++ b/src/wasm/wasm-objects.cc |
@@ -629,10 +629,9 @@ uint32_t WasmInstanceObject::GetMaxMemoryPages() { |
} |
uint32_t compiled_max_pages = compiled_module()->module()->max_mem_pages; |
Isolate* isolate = GetIsolate(); |
- auto* histogram = (compiled_module()->module()->is_wasm() |
- ? isolate->counters()->wasm_wasm_max_mem_pages_count() |
- : isolate->counters()->wasm_asm_max_mem_pages_count()); |
- histogram->AddSample(compiled_max_pages); |
+ assert(compiled_module()->module()->is_wasm()); |
+ isolate->counters()->wasm_wasm_max_mem_pages_count()->AddSample( |
+ compiled_max_pages); |
if (compiled_max_pages != 0) return compiled_max_pages; |
return FLAG_wasm_max_mem_pages; |
} |