aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libsolidity/Parser.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/libsolidity/Parser.cpp b/libsolidity/Parser.cpp
index 1ea406be..3fbe4d68 100644
--- a/libsolidity/Parser.cpp
+++ b/libsolidity/Parser.cpp
@@ -624,12 +624,8 @@ ASTPointer<Statement> Parser::parseStatement()
}
case Token::Throw:
{
- ASTNodeFactory nodeFactory(*this);
- ASTPointer<Expression> expression;
- if (m_scanner->next() != Token::Semicolon)
- BOOST_THROW_EXCEPTION(createParserError("Expected semicolon."));
-
- statement = nodeFactory.createNode<Throw>();
+ statement = ASTNodeFactory(*this).createNode<Throw>();
+ m_scanner->next();
break;
}
case Token::Identifier: