diff options
Diffstat (limited to 'src/validator.cc')
-rw-r--r-- | src/validator.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/validator.cc b/src/validator.cc index 7af62164..e10db823 100644 --- a/src/validator.cc +++ b/src/validator.cc @@ -1069,6 +1069,10 @@ void Validator::CheckConstInitExpr(const Location* loc, break; } + case ExprType::RefNull: + type = Type::Anyref; + break; + default: PrintConstExprError(loc, desc); return; |