diff options
author | Thomas Lively <7121787+tlively@users.noreply.github.com> | 2020-04-10 17:09:24 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-10 17:09:24 -0700 |
commit | 6d4974135a9409a75822a0fe9c501676234c1f37 (patch) | |
tree | ba4756992b4eb009ccd106d32292b29927fb4ba1 /src | |
parent | 7126b2c70d2e087c0e6af463f963d6e84326ecb6 (diff) | |
download | binaryen-6d4974135a9409a75822a0fe9c501676234c1f37.tar.gz binaryen-6d4974135a9409a75822a0fe9c501676234c1f37.tar.bz2 binaryen-6d4974135a9409a75822a0fe9c501676234c1f37.zip |
Fix multivalue event fuzzing (#2748)
The fuzzer was previously unconditionally emitting one event parameter
more than it was supposed to, which meant multivalue events were
emitted when multivalue was not enabled.
Diffstat (limited to 'src')
-rw-r--r-- | src/tools/fuzzing.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/tools/fuzzing.h b/src/tools/fuzzing.h index f08fac2d9..7dac502db 100644 --- a/src/tools/fuzzing.h +++ b/src/tools/fuzzing.h @@ -425,9 +425,7 @@ private: Index num = upTo(3); for (size_t i = 0; i < num; i++) { // Events should have void return type and at least one param type - Type type = getConcreteType(); std::vector<Type> params; - params.push_back(type); Index numValues = wasm.features.hasMultivalue() ? upToSquared(MAX_PARAMS) : upTo(2); for (Index i = 0; i < numValues; i++) { |