diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/wasm/wasm-s-parser.cpp | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/src/wasm/wasm-s-parser.cpp b/src/wasm/wasm-s-parser.cpp index 42785e40e..9f5f412be 100644 --- a/src/wasm/wasm-s-parser.cpp +++ b/src/wasm/wasm-s-parser.cpp @@ -3160,14 +3160,7 @@ Expression* SExpressionWasmBuilder::makeArraySet(Element& s) { } Expression* SExpressionWasmBuilder::makeArrayLen(Element& s) { - // There may or may not be a type annotation. - Index i = 1; - try { - parseHeapType(*s[i]); - ++i; - } catch (...) { - } - auto ref = parseExpression(*s[i]); + auto ref = parseExpression(*s[1]); return Builder(wasm).makeArrayLen(ref); } |