mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Another stack check.
This commit is contained in:
parent
dfb7d5ebd9
commit
5f4b68e211
@ -164,7 +164,9 @@ bool AsmAnalyzer::operator()(FunctionalAssignment const& _assignment)
|
|||||||
|
|
||||||
bool AsmAnalyzer::operator()(assembly::VariableDeclaration const& _varDecl)
|
bool AsmAnalyzer::operator()(assembly::VariableDeclaration const& _varDecl)
|
||||||
{
|
{
|
||||||
|
int const stackHeight = m_stackHeight;
|
||||||
bool success = boost::apply_visitor(*this, *_varDecl.value);
|
bool success = boost::apply_visitor(*this, *_varDecl.value);
|
||||||
|
solAssert(m_stackHeight - stackHeight == 1, "Invalid value size.");
|
||||||
boost::get<Scope::Variable>(m_currentScope->identifiers.at(_varDecl.name)).active = true;
|
boost::get<Scope::Variable>(m_currentScope->identifiers.at(_varDecl.name)).active = true;
|
||||||
return success;
|
return success;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user