diff options
author | Thomas Lively <tlively@google.com> | 2023-06-20 11:17:11 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-20 11:17:11 -0700 |
commit | 7d17b409e68bb8b92e2c13e5d992470e15db1455 (patch) | |
tree | f2d730ff27a28392a334f7075fe23085a10fbb31 /test | |
parent | a317958d3026632dcdeda5cc9850fd79dda59e9d (diff) | |
download | binaryen-7d17b409e68bb8b92e2c13e5d992470e15db1455.tar.gz binaryen-7d17b409e68bb8b92e2c13e5d992470e15db1455.tar.bz2 binaryen-7d17b409e68bb8b92e2c13e5d992470e15db1455.zip |
[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`.
Diffstat (limited to 'test')
-rw-r--r-- | test/example/typeinfo.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/example/typeinfo.cpp b/test/example/typeinfo.cpp index ff20753b1..4edf1cc5d 100644 --- a/test/example/typeinfo.cpp +++ b/test/example/typeinfo.cpp @@ -79,7 +79,7 @@ void test_compound() { Type(otherArray, NonNullable).getID()); } { - Tuple singleTuple({Type::i32}); + Tuple singleTuple = {Type::i32}; assert(Type(singleTuple).getID() == Type::i32); Tuple tuple({Type::i32, Type::f64}); |