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/tools/js-wrapper.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/tools/js-wrapper.h') diff --git a/src/tools/js-wrapper.h b/src/tools/js-wrapper.h index 0a9b5925e..58e52b782 100644 --- a/src/tools/js-wrapper.h +++ b/src/tools/js-wrapper.h @@ -99,7 +99,7 @@ static std::string generateJSWrapper(Module& wasm) { } ret += std::string("instance.exports.") + exp->name.str + "("; bool first = true; - for (Type param : func->sig.params.expand()) { + for (auto& param : func->sig.params) { // zeros in arguments TODO more? if (first) { first = false; -- cgit v1.2.3