summaryrefslogtreecommitdiff
path: root/src/wasm/wasm-validator.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/wasm/wasm-validator.cpp')
-rw-r--r--src/wasm/wasm-validator.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/wasm/wasm-validator.cpp b/src/wasm/wasm-validator.cpp
index b84105c8d..7467f1f15 100644
--- a/src/wasm/wasm-validator.cpp
+++ b/src/wasm/wasm-validator.cpp
@@ -1053,6 +1053,7 @@ void FunctionValidator::validateMemBytes(uint8_t bytes,
shouldBeEqual(
bytes, uint8_t(16), curr, "expected v128 operation to touch 16 bytes");
break;
+ case except_ref: // except_ref cannot be stored in memory
case none:
WASM_UNREACHABLE();
case unreachable:
@@ -1616,6 +1617,7 @@ void FunctionValidator::validateAlignment(
case v128:
case unreachable:
break;
+ case except_ref: // except_ref cannot be stored in memory
case none:
WASM_UNREACHABLE();
}