diff options
author | Alon Zakai <alonzakai@gmail.com> | 2017-07-18 11:22:08 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-07-18 11:22:08 -0700 |
commit | 0b2122d49a28f199ef7fde247e7e7a14829fa96e (patch) | |
tree | def77ee01192fd27fca6cec61fa82c4525873ddf /src/passes/OptimizeInstructions.cpp | |
parent | 275c5ebafdf2860edb965d322bdad4c3e3717bea (diff) | |
parent | 2daf000f471afdcf21f784f83440bb4bdc1a9de9 (diff) | |
download | binaryen-0b2122d49a28f199ef7fde247e7e7a14829fa96e.tar.gz binaryen-0b2122d49a28f199ef7fde247e7e7a14829fa96e.tar.bz2 binaryen-0b2122d49a28f199ef7fde247e7e7a14829fa96e.zip |
Merge pull request #1100 from WebAssembly/fuzz-4
Yet more fuzz fixes
Diffstat (limited to 'src/passes/OptimizeInstructions.cpp')
-rw-r--r-- | src/passes/OptimizeInstructions.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/passes/OptimizeInstructions.cpp b/src/passes/OptimizeInstructions.cpp index c6006d712..de6f96ccc 100644 --- a/src/passes/OptimizeInstructions.cpp +++ b/src/passes/OptimizeInstructions.cpp @@ -453,7 +453,7 @@ struct OptimizeInstructions : public WalkerPass<PostWalker<OptimizeInstructions, if ((count > 0 && count < 32 - bits) || (constSignBit && count == 0)) { // mixed or [zero upper const bits with sign bit set]; the compared values can never be identical, so // force something definitely impossible even after zext - assert(bits < 31); + assert(bits < 32); c->value = Literal(int32_t(0x80000000)); // TODO: if no side effects, we can just replace it all with 1 or 0 } else { |