mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Consider mappings return values in control flow analysis.
This commit is contained in:
@@ -75,7 +75,10 @@ void ControlFlowAnalyzer::checkUnassignedStorageReturnValues(
|
||||
{
|
||||
auto& unassignedAtFunctionEntry = unassigned[_functionEntry];
|
||||
for (auto const& returnParameter: _function.returnParameterList()->parameters())
|
||||
if (returnParameter->type()->dataStoredIn(DataLocation::Storage))
|
||||
if (
|
||||
returnParameter->type()->dataStoredIn(DataLocation::Storage) ||
|
||||
returnParameter->type()->category() == Type::Category::Mapping
|
||||
)
|
||||
unassignedAtFunctionEntry.insert(returnParameter.get());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user