mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Clear variables, but not backreferences in popScope.
This commit is contained in:
parent
7fe03cbab0
commit
970e8064bb
@ -293,6 +293,11 @@ void DataFlowAnalyzer::pushScope(bool _functionScope)
|
|||||||
|
|
||||||
void DataFlowAnalyzer::popScope()
|
void DataFlowAnalyzer::popScope()
|
||||||
{
|
{
|
||||||
|
for (auto const& name: m_variableScopes.back().variables)
|
||||||
|
{
|
||||||
|
m_value.erase(name);
|
||||||
|
m_references.erase(name);
|
||||||
|
}
|
||||||
m_variableScopes.pop_back();
|
m_variableScopes.pop_back();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user