mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Simplified Parser::createWithLocation().
In all but one case the function was called with the default argument value. And when it was location, the location should be valid (see Parser::parseElementaryOperation()).
This commit is contained in:
@@ -206,8 +206,8 @@ Statement Parser::parseStatement()
|
||||
elementary = parseElementaryOperation();
|
||||
}
|
||||
|
||||
Assignment assignment =
|
||||
createWithLocation<Assignment>(std::get<Identifier>(elementary).location);
|
||||
Assignment assignment;
|
||||
assignment.location = std::get<Identifier>(elementary).location;
|
||||
assignment.variableNames = std::move(variableNames);
|
||||
|
||||
expectToken(Token::AssemblyAssign);
|
||||
|
||||
Reference in New Issue
Block a user