summaryrefslogtreecommitdiff
path: root/src/wasm/wasm-validator.cpp
diff options
context:
space:
mode:
authorHeejin Ahn <aheejin@gmail.com>2019-05-07 18:52:57 -0700
committerGitHub <noreply@github.com>2019-05-07 18:52:57 -0700
commit14a286971d203e3caf6f49089fe6ddc16024861f (patch)
treee20a5659bfd95dacc3f2d779f759173da065d607 /src/wasm/wasm-validator.cpp
parentda716eb233f9fe7cefc61d9d1ce54f8b8c9d9126 (diff)
downloadbinaryen-14a286971d203e3caf6f49089fe6ddc16024861f.tar.gz
binaryen-14a286971d203e3caf6f49089fe6ddc16024861f.tar.bz2
binaryen-14a286971d203e3caf6f49089fe6ddc16024861f.zip
Add except_ref type (#2081)
This adds except_ref type, which is a part of the exception handling proposal.
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();
}