summaryrefslogtreecommitdiff
path: root/src/ir/utils.h
diff options
context:
space:
mode:
authorDaniel Wirtz <dcode@dcode.io>2020-08-13 02:48:52 +0200
committerGitHub <noreply@github.com>2020-08-12 17:48:52 -0700
commit902469769dee0a3f61e7e5aaca597d3cbac139ad (patch)
tree024c9e010e9a1d406632994df747a1657eff937a /src/ir/utils.h
parentf067a45c1e88124173af992e66a7125fe6ab366a (diff)
downloadbinaryen-902469769dee0a3f61e7e5aaca597d3cbac139ad.tar.gz
binaryen-902469769dee0a3f61e7e5aaca597d3cbac139ad.tar.bz2
binaryen-902469769dee0a3f61e7e5aaca597d3cbac139ad.zip
Refactor hashing (#3023)
* Unifies internal hashing helpers to naturally integrate with std::hash * Removes the previous custom implementation * Computed hashes are now always size_t * Introduces a hash_combine helper * Fixes an overwritten partial hash in Relooper.cpp
Diffstat (limited to 'src/ir/utils.h')
-rw-r--r--src/ir/utils.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ir/utils.h b/src/ir/utils.h
index a7f6f59bf..176699591 100644
--- a/src/ir/utils.h
+++ b/src/ir/utils.h
@@ -78,7 +78,7 @@ struct ExpressionAnalyzer {
// hash an expression, ignoring superficial details like specific internal
// names
- static HashType hash(Expression* curr);
+ static size_t hash(Expression* curr);
};
// Re-Finalizes all node types. This can be run after code was modified in