summaryrefslogtreecommitdiff
path: root/src/wasm/literal.cpp
diff options
context:
space:
mode:
authorThomas Lively <7121787+tlively@users.noreply.github.com>2020-12-03 14:58:39 -0800
committerGitHub <noreply@github.com>2020-12-03 14:58:39 -0800
commitd6444b5032a64f3abe35bf60eb96e151669d2fa5 (patch)
tree3df9f4aa3819961e63c9f1da640ec607abe2fbca /src/wasm/literal.cpp
parent15356635e34ed8981c993d67ed90e83bc7bfa405 (diff)
downloadbinaryen-d6444b5032a64f3abe35bf60eb96e151669d2fa5.tar.gz
binaryen-d6444b5032a64f3abe35bf60eb96e151669d2fa5.tar.bz2
binaryen-d6444b5032a64f3abe35bf60eb96e151669d2fa5.zip
[NFC] Rename BasicID to BasicType (#3419)
This name is more descriptive and paves the way toward interning HeapTypes as well, with an analogous BasicHeapType.
Diffstat (limited to 'src/wasm/literal.cpp')
-rw-r--r--src/wasm/literal.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/wasm/literal.cpp b/src/wasm/literal.cpp
index c80bb44b8..4edaf8039 100644
--- a/src/wasm/literal.cpp
+++ b/src/wasm/literal.cpp
@@ -1569,7 +1569,8 @@ Literal Literal::shuffleV8x16(const Literal& other,
return Literal(bytes);
}
-template<Type::BasicID Ty, int Lanes> static Literal splat(const Literal& val) {
+template<Type::BasicType Ty, int Lanes>
+static Literal splat(const Literal& val) {
assert(val.type == Ty);
LaneArray<Lanes> lanes;
lanes.fill(val);