diff options
author | Daniel Wirtz <dcode@dcode.io> | 2020-08-20 01:36:17 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-19 16:36:17 -0700 |
commit | a18d30fb42838f2e4002338d6e57a25322f9e422 (patch) | |
tree | 930607d9202d35eaf66d784df29162400efd98cb /src/passes/I64ToI32Lowering.cpp | |
parent | b43807a835fc878e5eefcb8b4a18aff62d7f4540 (diff) | |
download | binaryen-a18d30fb42838f2e4002338d6e57a25322f9e422.tar.gz binaryen-a18d30fb42838f2e4002338d6e57a25322f9e422.tar.bz2 binaryen-a18d30fb42838f2e4002338d6e57a25322f9e422.zip |
Replace Type::expand() with an iterator-based approach (#3061)
This leads to simpler code and is a prerequisite for #3012, which makes it so that not all `Type`s are backed by vectors that `expand` could return.
Diffstat (limited to 'src/passes/I64ToI32Lowering.cpp')
-rw-r--r-- | src/passes/I64ToI32Lowering.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/passes/I64ToI32Lowering.cpp b/src/passes/I64ToI32Lowering.cpp index f66af87cc..41d0e799a 100644 --- a/src/passes/I64ToI32Lowering.cpp +++ b/src/passes/I64ToI32Lowering.cpp @@ -272,7 +272,7 @@ struct I64ToI32Lowering : public WalkerPass<PostWalker<I64ToI32Lowering>> { visitGenericCall<CallIndirect>( curr, [&](std::vector<Expression*>& args, Type results) { std::vector<Type> params; - for (auto param : curr->sig.params.expand()) { + for (auto& param : curr->sig.params) { if (param == Type::i64) { params.push_back(Type::i32); params.push_back(Type::i32); |