libyul: Small code improvements.

This commit is contained in:
Christian Parpart
2019-10-25 15:39:44 +02:00
parent 2890e4888f
commit f45c3124f8
2 changed files with 14 additions and 14 deletions
+1 -4
View File
@@ -276,9 +276,7 @@ Expression Parser::parseExpression()
RecursionGuard recursionGuard(*this);
ElementaryOperation operation = parseElementaryOperation();
if (operation.type() == typeid(FunctionCall))
return parseCall(std::move(operation));
else if (currentToken() == Token::LParen)
if (operation.type() == typeid(FunctionCall) || currentToken() == Token::LParen)
return parseCall(std::move(operation));
else if (operation.type() == typeid(Identifier))
return boost::get<Identifier>(operation);
@@ -316,7 +314,6 @@ Parser::ElementaryOperation Parser::parseElementaryOperation()
case Token::Address:
{
YulString literal{currentLiteral()};
// first search the set of builtins, then the instructions.
if (m_dialect.builtin(literal))
{
Identifier identifier{location(), literal};