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.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/wasm-s-parser.h b/src/wasm-s-parser.h
index c1a1162e1..be3263312 100644
--- a/src/wasm-s-parser.h
+++ b/src/wasm-s-parser.h
@@ -623,7 +623,7 @@ public:
if (id == CALL) return makeCall(s);
if (id == CALL_IMPORT) return makeCallImport(s);
if (id == CALL_INDIRECT) return makeCallIndirect(s);
- }
+ } else if (str[1] == 'u') return makeHost(s, HostOp::CurrentMemory);
abort_on(str);
}
case 'e': {
@@ -647,10 +647,6 @@ public:
if (str[1] == 'o') return makeLoop(s);
abort_on(str);
}
- case 'm': {
- if (str[1] == 'e') return makeHost(s, HostOp::MemorySize);
- abort_on(str);
- }
case 'n': {
if (str[1] == 'o') return allocator.alloc<Nop>();
abort_on(str);