mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
libyul: Small code improvements.
This commit is contained in:
@@ -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};
|
||||
|
||||
Reference in New Issue
Block a user