Skip to content

Commit 8d3c9aa

Browse files
authored
Merge pull request #3349 from tautschnig/vs-shadow-2
Do not shadow "it" [blocks: #2310]
2 parents 96a71f6 + e82029c commit 8d3c9aa

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/analyses/goto_check.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1577,8 +1577,8 @@ void goto_checkt::goto_check(
15771577
}
15781578
else if(statement==ID_printf)
15791579
{
1580-
forall_operands(it, i.code)
1581-
check(*it);
1580+
for(const auto &op : i.code.operands())
1581+
check(op);
15821582
}
15831583
}
15841584
else if(i.is_assign())
@@ -1625,8 +1625,8 @@ void goto_checkt::goto_check(
16251625
}
16261626
}
16271627

1628-
forall_operands(it, code_function_call)
1629-
check(*it);
1628+
for(const auto &op : code_function_call.operands())
1629+
check(op);
16301630

16311631
// the call might invalidate any assertion
16321632
assertions.clear();

0 commit comments

Comments
 (0)