From af87f23744477b034dcb1c59af2a1a208becab23 Mon Sep 17 00:00:00 2001 From: Daniel Wirtz Date: Thu, 20 Aug 2020 21:35:14 +0200 Subject: Use const modifier when dealing with types (#3064) Since they make the code clearer and more self-documenting. --- src/wasm/literal.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/wasm/literal.cpp') diff --git a/src/wasm/literal.cpp b/src/wasm/literal.cpp index 11130bc18..205d65b84 100644 --- a/src/wasm/literal.cpp +++ b/src/wasm/literal.cpp @@ -102,7 +102,7 @@ Literal::Literal(const LaneArray<2>& lanes) : type(Type::v128) { Literals Literal::makeZero(Type type) { assert(type.isConcrete()); Literals zeroes; - for (auto& t : type) { + for (const auto& t : type) { zeroes.push_back(makeSingleZero(t)); } return zeroes; -- cgit v1.2.3