mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Fix compilation error on CI (due to "possibly uninitialized field member").
This commit is contained in:
parent
112e63fe15
commit
cf82bc04d2
@ -33,9 +33,10 @@ void ForLoopConditionIntoBody::operator()(ForLoop& _forLoop)
|
||||
{
|
||||
if (m_dialect.booleanNegationFunction() && _forLoop.condition->type() != typeid(Literal))
|
||||
{
|
||||
langutil::SourceLocation loc = locationOf(*_forLoop.condition);
|
||||
_forLoop.body.statements.insert(
|
||||
_forLoop.body.statements.begin(),
|
||||
langutil::SourceLocation const loc = locationOf(*_forLoop.condition);
|
||||
|
||||
_forLoop.body.statements.emplace(
|
||||
begin(_forLoop.body.statements),
|
||||
If {
|
||||
loc,
|
||||
make_unique<Expression>(
|
||||
|
Loading…
Reference in New Issue
Block a user