Use bool type in conditional simplifier and for loop condition into body.

This commit is contained in:
chriseth
2020-02-24 15:05:19 +01:00
parent a52c9af5b9
commit a52305d3bd
9 changed files with 47 additions and 16 deletions
+1 -6
View File
@@ -77,12 +77,7 @@ void ConditionalSimplifier::operator()(Block& _block)
Assignment{
location,
{Identifier{location, condition}},
make_unique<Expression>(Literal{
location,
LiteralKind::Number,
"0"_yulstring,
{}
})
make_unique<Expression>(m_dialect.zeroLiteralForType(m_dialect.boolType))
}
);
}