diff options
author | Ben Smith <binji@chromium.org> | 2020-07-15 16:39:52 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-15 16:39:52 -0700 |
commit | bd52b8845aa8dcbecc8fc14d77a2bd4e64ad6e75 (patch) | |
tree | 1cff008fdeeff4f4a2a7aa703a19d0910fa1b72b /src/shared-validator.cc | |
parent | 3041d94d21c82c5a31d1d003bfacbcf2fc28b573 (diff) | |
download | wabt-bd52b8845aa8dcbecc8fc14d77a2bd4e64ad6e75.tar.gz wabt-bd52b8845aa8dcbecc8fc14d77a2bd4e64ad6e75.tar.bz2 wabt-bd52b8845aa8dcbecc8fc14d77a2bd4e64ad6e75.zip |
Remove ref.is_null type parameter (#1474)
See https://github.com/WebAssembly/reference-types/issues/99.
This change also updates the testsuite, so the spec tests pass too.
In addition, the behavior of `br_table` is no longer different from MVP,
and has a text to confirm this. That is now fixed in `type-checker.cc`
too.
Diffstat (limited to 'src/shared-validator.cc')
-rw-r--r-- | src/shared-validator.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/shared-validator.cc b/src/shared-validator.cc index f4a7303e..8b6bef80 100644 --- a/src/shared-validator.cc +++ b/src/shared-validator.cc @@ -968,10 +968,10 @@ Result SharedValidator::OnRefFunc(const Location& loc, Var func_var) { return result; } -Result SharedValidator::OnRefIsNull(const Location& loc, Type type) { +Result SharedValidator::OnRefIsNull(const Location& loc) { Result result = Result::Ok; expr_loc_ = &loc; - result |= typechecker_.OnRefIsNullExpr(type); + result |= typechecker_.OnRefIsNullExpr(); return result; } |