diff options
author | Daniel Wirtz <dcode@dcode.io> | 2020-08-13 02:48:52 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-12 17:48:52 -0700 |
commit | 902469769dee0a3f61e7e5aaca597d3cbac139ad (patch) | |
tree | 024c9e010e9a1d406632994df747a1657eff937a /src/passes/pass.cpp | |
parent | f067a45c1e88124173af992e66a7125fe6ab366a (diff) | |
download | binaryen-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/passes/pass.cpp')
-rw-r--r-- | src/passes/pass.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/passes/pass.cpp b/src/passes/pass.cpp index 5a0dedf37..73e5094e8 100644 --- a/src/passes/pass.cpp +++ b/src/passes/pass.cpp @@ -686,7 +686,7 @@ struct AfterEffectFunctionChecker { // Check Stack IR state: if the main IR changes, there should be no // stack IR, as the stack IR would be wrong. bool beganWithStackIR; - HashType originalFunctionHash; + size_t originalFunctionHash; // In the creator we can scan the state of the module and function before the // pass runs. |