mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Add assertion for boolean literals in Julia-mode
This commit is contained in:
parent
ae02bb5aad
commit
42856e0f53
@ -90,6 +90,11 @@ bool AsmAnalyzer::operator()(assembly::Literal const& _literal)
|
||||
);
|
||||
return false;
|
||||
}
|
||||
else if (_literal.kind == assembly::LiteralKind::Boolean)
|
||||
{
|
||||
solAssert(m_flavour == AsmFlavour::IULIA, "");
|
||||
solAssert(_literal.value == "true" || _literal.value == "false", "");
|
||||
}
|
||||
m_info.stackHeightInfo[&_literal] = m_stackHeight;
|
||||
return true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user