From e8f9d207427bda2f6e22c28ff0210b294b1f70e1 Mon Sep 17 00:00:00 2001 From: Thomas Lively <7121787+tlively@users.noreply.github.com> Date: Tue, 7 Jan 2020 11:16:44 -0800 Subject: [NFC] Enforce use of `Type::` on type names (#2434) --- src/wasm-s-parser.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/wasm-s-parser.h') diff --git a/src/wasm-s-parser.h b/src/wasm-s-parser.h index 8cdcb88f4..e6b40eb08 100644 --- a/src/wasm-s-parser.h +++ b/src/wasm-s-parser.h @@ -161,7 +161,9 @@ private: Type stringToType(const char* str, bool allowError = false, bool prefix = false); Type stringToLaneType(const char* str); - bool isType(cashew::IString str) { return stringToType(str, true) != none; } + bool isType(cashew::IString str) { + return stringToType(str, true) != Type::none; + } public: Expression* parseExpression(Element* s) { return parseExpression(*s); } -- cgit v1.2.3