mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
libyul: changing some AST members from shared_ptr<> to unique_ptr<>
* Some spaces look a little more verbose now, but that shouln't be a problem as it also should raise readability, too. * This makes some use of return-value-optimizations also.
This commit is contained in:
@@ -51,8 +51,10 @@ void DataFlowAnalyzer::operator()(VariableDeclaration& _varDecl)
|
||||
for (auto const& var: _varDecl.variables)
|
||||
names.emplace(var.name);
|
||||
m_variableScopes.back().variables += names;
|
||||
|
||||
if (_varDecl.value)
|
||||
visit(*_varDecl.value);
|
||||
|
||||
handleAssignment(names, _varDecl.value.get());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user