Add assertion for boolean literals in Julia-mode

This commit is contained in:
Alex Beregszaszi 2018-02-22 01:00:26 +01:00
parent ae02bb5aad
commit 42856e0f53

View File

@ -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;
}