Clear variables, but not backreferences in popScope.

This commit is contained in:
Daniel Kirchner 2020-12-11 18:11:20 +01:00
parent 7fe03cbab0
commit 970e8064bb

View File

@ -293,6 +293,11 @@ void DataFlowAnalyzer::pushScope(bool _functionScope)
void DataFlowAnalyzer::popScope()
{
for (auto const& name: m_variableScopes.back().variables)
{
m_value.erase(name);
m_references.erase(name);
}
m_variableScopes.pop_back();
}