summaryrefslogtreecommitdiff
path: root/src/wasm-s-parser.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/wasm-s-parser.h')
-rw-r--r--src/wasm-s-parser.h4
1 files changed, 3 insertions, 1 deletions
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); }