From 24bb5d83b1b877638053a5f8761ab8372aeeeac9 Mon Sep 17 00:00:00 2001 From: Thomas Lively <7121787+tlively@users.noreply.github.com> Date: Wed, 13 Nov 2019 14:17:29 -0800 Subject: [NFC] Make Type a class instead of enum (#2433) The plan is to extend `Type` to represent arbitrary multivalue types, and as a prerequisite for that it is necessary to make it a class instead of an enum. This PR bends over backwards to add all the automatic conversions and constants necessary to allow the rest of the code to compile unmodified, but in the future it should be possible to standardize usage across the code base and remove some of these utilities. --- src/wasm/literal.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/wasm/literal.cpp') diff --git a/src/wasm/literal.cpp b/src/wasm/literal.cpp index 41d98dea3..8d8868eb4 100644 --- a/src/wasm/literal.cpp +++ b/src/wasm/literal.cpp @@ -1286,7 +1286,8 @@ Literal Literal::shuffleV8x16(const Literal& other, return Literal(bytes); } -template static Literal splat(const Literal& val) { +template +static Literal splat(const Literal& val) { assert(val.type == Ty); LaneArray lanes; lanes.fill(val); -- cgit v1.2.3