diff options
author | Daniel Wirtz <dcode@dcode.io> | 2020-08-20 21:35:14 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-20 12:35:14 -0700 |
commit | af87f23744477b034dcb1c59af2a1a208becab23 (patch) | |
tree | 1f99d29f17191ecdd121cd15e455cea90b38d303 /src/wasm/literal.cpp | |
parent | a18d30fb42838f2e4002338d6e57a25322f9e422 (diff) | |
download | binaryen-af87f23744477b034dcb1c59af2a1a208becab23.tar.gz binaryen-af87f23744477b034dcb1c59af2a1a208becab23.tar.bz2 binaryen-af87f23744477b034dcb1c59af2a1a208becab23.zip |
Use const modifier when dealing with types (#3064)
Since they make the code clearer and more self-documenting.
Diffstat (limited to 'src/wasm/literal.cpp')
-rw-r--r-- | src/wasm/literal.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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; |