From 7d17b409e68bb8b92e2c13e5d992470e15db1455 Mon Sep 17 00:00:00 2001 From: Thomas Lively Date: Tue, 20 Jun 2023 11:17:11 -0700 Subject: [NFC] Simplify `Tuple` by making it an alias of `TypeList` (#5775) Rather than wrap a `TypeList`, make `Tuple` an alias of `TypeList`. This means removing `Tuple::toString`, but that had no callers and was of limited use for debugging anyway. In return, the use of tuples becomes much less verbose. In the future, it may make sense to remove one of `Tuple` and `TypeList`. --- src/wasm/wasm-validator.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/wasm/wasm-validator.cpp') diff --git a/src/wasm/wasm-validator.cpp b/src/wasm/wasm-validator.cpp index 239c79e3f..9c1f9fdbb 100644 --- a/src/wasm/wasm-validator.cpp +++ b/src/wasm/wasm-validator.cpp @@ -3357,7 +3357,7 @@ static void validateImports(Module& module, ValidationInfo& info) { if (Intrinsics(module).isCallWithoutEffects(curr)) { auto lastParam = curr->getParams(); if (lastParam.isTuple()) { - lastParam = lastParam.getTuple().types.back(); + lastParam = lastParam.getTuple().back(); } info.shouldBeTrue(lastParam.isFunction(), curr->name, -- cgit v1.2.3