From a18d30fb42838f2e4002338d6e57a25322f9e422 Mon Sep 17 00:00:00 2001 From: Daniel Wirtz Date: Thu, 20 Aug 2020 01:36:17 +0200 Subject: 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. --- src/asmjs/asm_v_wasm.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/asmjs/asm_v_wasm.cpp') diff --git a/src/asmjs/asm_v_wasm.cpp b/src/asmjs/asm_v_wasm.cpp index 75fc0506b..fca6284c6 100644 --- a/src/asmjs/asm_v_wasm.cpp +++ b/src/asmjs/asm_v_wasm.cpp @@ -104,8 +104,8 @@ std::string getSig(Type results, Type params) { assert(!results.isMulti()); std::string sig; sig += getSig(results); - for (Type t : params.expand()) { - sig += getSig(t); + for (auto& param : params) { + sig += getSig(param); } return sig; } -- cgit v1.2.3