Index: src/wasm/wasm-module.h |
diff --git a/src/wasm/wasm-module.h b/src/wasm/wasm-module.h |
index 5e84945da9a6d3828b90e8589a2dff56b1babd57..5dde60db8ca8da88f1c87e9634b091d70807717d 100644 |
--- a/src/wasm/wasm-module.h |
+++ b/src/wasm/wasm-module.h |
@@ -105,8 +105,8 @@ struct WasmModule { |
// Get a pointer to a string stored in the module bytes representing a name. |
const char* GetName(uint32_t offset) { |
- CHECK(BoundsCheck(offset, offset + 1)); |
if (offset == 0) return "<?>"; // no name. |
+ CHECK(BoundsCheck(offset, offset + 1)); |
return reinterpret_cast<const char*>(module_start + offset); |
} |