summaryrefslogtreecommitdiff
path: root/src/ir/possible-contents.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/ir/possible-contents.h')
-rw-r--r--src/ir/possible-contents.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/ir/possible-contents.h b/src/ir/possible-contents.h
index 8a8d9b635..cf92a578a 100644
--- a/src/ir/possible-contents.h
+++ b/src/ir/possible-contents.h
@@ -531,8 +531,8 @@ template<> struct hash<wasm::ResultLocation> {
template<> struct hash<wasm::BreakTargetLocation> {
size_t operator()(const wasm::BreakTargetLocation& loc) const {
- return std::hash<std::pair<size_t, std::pair<wasm::Name, wasm::Index>>>{}(
- {size_t(loc.func), {loc.target, loc.tupleIndex}});
+ return std::hash<std::tuple<size_t, wasm::Name, wasm::Index>>{}(
+ {size_t(loc.func), loc.target, loc.tupleIndex});
}
};
@@ -578,9 +578,8 @@ template<> struct hash<wasm::NullLocation> {
template<> struct hash<wasm::ConeReadLocation> {
size_t operator()(const wasm::ConeReadLocation& loc) const {
- return std::hash<
- std::pair<wasm::HeapType, std::pair<wasm::Index, wasm::Index>>>{}(
- {loc.type, {loc.depth, loc.index}});
+ return std::hash<std::tuple<wasm::HeapType, wasm::Index, wasm::Index>>{}(
+ {loc.type, loc.depth, loc.index});
}
};