diff options
Diffstat (limited to 'src/wast-parser.cc')
-rw-r--r-- | src/wast-parser.cc | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/wast-parser.cc b/src/wast-parser.cc index 90d92f87..c3ed9d28 100644 --- a/src/wast-parser.cc +++ b/src/wast-parser.cc @@ -1996,13 +1996,10 @@ Result WastParser::ParsePlainInstr(std::unique_ptr<Expr>* out_expr) { break; } - case TokenType::RefIsNull: { + case TokenType::RefIsNull: ErrorUnlessOpcodeEnabled(Consume()); - Type type; - CHECK_RESULT(ParseRefKind(&type)); - out_expr->reset(new RefIsNullExpr(type, loc)); + out_expr->reset(new RefIsNullExpr(loc)); break; - } case TokenType::Throw: ErrorUnlessOpcodeEnabled(Consume()); |