diff options
-rw-r--r-- | src/wasm/wasm-validator.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/wasm/wasm-validator.cpp b/src/wasm/wasm-validator.cpp index c152e4b98..1aee9a15d 100644 --- a/src/wasm/wasm-validator.cpp +++ b/src/wasm/wasm-validator.cpp @@ -1909,6 +1909,8 @@ void FunctionValidator::visitTupleMake(TupleMake* curr) { shouldBeTrue(getModule()->features.hasMultivalue(), curr, "Tuples are not allowed unless multivalue is enabled"); + shouldBeTrue( + curr->operands.size() > 1, curr, "tuple.make must have multiple operands"); std::vector<Type> types; for (auto* op : curr->operands) { if (op->type == Type::unreachable) { |