From 21ddb853559bde490b4f02db576d4b8cd48d3106 Mon Sep 17 00:00:00 2001 From: Thomas Lively Date: Wed, 21 Aug 2024 14:58:57 -0700 Subject: [NFC] hash constant string as void* (#6863) possible-contents.h hashes the location for caught exnrefs by hashing an arbitrary string, "caught-exnref-location". It previously used `std::hash` for this, but some standard library implementations report an error when this template instantiation is used because hashing the location of a string is almost never correct. In this case it is fine, so switch to using `std::hash`. --- src/ir/possible-contents.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/ir/possible-contents.h b/src/ir/possible-contents.h index 7b88483cf..945d59d26 100644 --- a/src/ir/possible-contents.h +++ b/src/ir/possible-contents.h @@ -620,7 +620,7 @@ template<> struct hash { template<> struct hash { size_t operator()(const wasm::CaughtExnRefLocation& loc) const { - return std::hash()("caught-exnref-location"); + return std::hash()("caught-exnref-location"); } }; -- cgit v1.2.3