summaryrefslogtreecommitdiff
path: root/src/tools
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools')
-rw-r--r--src/tools/fuzzing.h2
-rw-r--r--src/tools/fuzzing/fuzzing.cpp7
2 files changed, 4 insertions, 5 deletions
diff --git a/src/tools/fuzzing.h b/src/tools/fuzzing.h
index 3e8ec5b97..1afb4bf36 100644
--- a/src/tools/fuzzing.h
+++ b/src/tools/fuzzing.h
@@ -358,7 +358,7 @@ private:
Expression* makeUnary(Type type);
Expression* buildBinary(const BinaryArgs& args);
Expression* makeBinary(Type type);
- Expression* buildSelect(const ThreeArgs& args, Type type);
+ Expression* buildSelect(const ThreeArgs& args);
Expression* makeSelect(Type type);
Expression* makeSwitch(Type type);
Expression* makeDrop(Type type);
diff --git a/src/tools/fuzzing/fuzzing.cpp b/src/tools/fuzzing/fuzzing.cpp
index a283aae91..7e87f4f58 100644
--- a/src/tools/fuzzing/fuzzing.cpp
+++ b/src/tools/fuzzing/fuzzing.cpp
@@ -3808,15 +3808,14 @@ Expression* TranslateToFuzzReader::makeBinary(Type type) {
WASM_UNREACHABLE("invalid type");
}
-Expression* TranslateToFuzzReader::buildSelect(const ThreeArgs& args,
- Type type) {
- return builder.makeSelect(args.a, args.b, args.c, type);
+Expression* TranslateToFuzzReader::buildSelect(const ThreeArgs& args) {
+ return builder.makeSelect(args.a, args.b, args.c);
}
Expression* TranslateToFuzzReader::makeSelect(Type type) {
Type subType1 = getSubType(type);
Type subType2 = getSubType(type);
- return buildSelect({make(Type::i32), make(subType1), make(subType2)}, type);
+ return buildSelect({make(Type::i32), make(subType1), make(subType2)});
}
Expression* TranslateToFuzzReader::makeSwitch(Type type) {