diff options
author | Thomas Lively <7121787+tlively@users.noreply.github.com> | 2020-03-10 18:52:50 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-10 18:52:50 -0700 |
commit | 0abc9ce8e9676c95f7ff572529eebf3018179dad (patch) | |
tree | cfe650786faef0e072ed426d70590a29095031ca /src/ir/hashed.h | |
parent | 8f16059d3c29e285d4effed7f0c1f84c1f2f4d9d (diff) | |
download | binaryen-0abc9ce8e9676c95f7ff572529eebf3018179dad.tar.gz binaryen-0abc9ce8e9676c95f7ff572529eebf3018179dad.tar.bz2 binaryen-0abc9ce8e9676c95f7ff572529eebf3018179dad.zip |
Update Precompute to handle tuples (#2687)
This involves replacing `Literal::makeZero` with `Literal::makeZeroes`
and `Literal::makeSingleZero` and updating `isConstantExpression` to
handle constant tuples as well. Also makes `Literals` its own struct
and adds convenience methods on it.
Diffstat (limited to 'src/ir/hashed.h')
-rw-r--r-- | src/ir/hashed.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ir/hashed.h b/src/ir/hashed.h index 3068966c5..563e3abfe 100644 --- a/src/ir/hashed.h +++ b/src/ir/hashed.h @@ -66,7 +66,7 @@ struct FunctionHasher : public WalkerPass<PostWalker<FunctionHasher>> { ret = rehash(ret, (HashType)func->sig.params.getID()); ret = rehash(ret, (HashType)func->sig.results.getID()); for (auto type : func->vars) { - ret = rehash(ret, (HashType)type.getSingle()); + ret = rehash(ret, (HashType)type.getID()); } ret = rehash(ret, (HashType)ExpressionAnalyzer::hash(func->body)); return ret; |