mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Consider return variables to be zero initially.
This commit is contained in:
@@ -96,7 +96,10 @@ void DataFlowAnalyzer::operator()(FunctionDefinition& _fun)
|
||||
for (auto const& parameter: _fun.parameters)
|
||||
m_variableScopes.back().variables.emplace(parameter.name);
|
||||
for (auto const& var: _fun.returnVariables)
|
||||
{
|
||||
m_variableScopes.back().variables.emplace(var.name);
|
||||
handleAssignment({var.name}, nullptr);
|
||||
}
|
||||
ASTModifier::operator()(_fun);
|
||||
|
||||
popScope();
|
||||
|
||||
Reference in New Issue
Block a user