mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Use bool type in conditional simplifier and for loop condition into body.
This commit is contained in:
@@ -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))
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user