Skip to content

Commit

Permalink
Use auto to declare iterators in goto_convertt::finish_goto
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasspriggs authored and Enrico Steffinlongo committed Dec 22, 2023
1 parent c90f690 commit 0c6a593
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/goto-programs/goto_convert.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -251,9 +251,7 @@ void goto_convertt::finish_gotos(goto_programt &dest, const irep_idt &mode)
if(i.is_start_thread())
{
const irep_idt &goto_label = i.code().get(ID_destination);

labelst::const_iterator l_it=
targets.labels.find(goto_label);
const auto l_it = targets.labels.find(goto_label);

if(l_it == targets.labels.end())
{
Expand All @@ -267,8 +265,7 @@ void goto_convertt::finish_gotos(goto_programt &dest, const irep_idt &mode)
else if(i.is_incomplete_goto())
{
const irep_idt &goto_label = i.code().get(ID_destination);

labelst::const_iterator l_it=targets.labels.find(goto_label);
const auto l_it = targets.labels.find(goto_label);

if(l_it == targets.labels.end())
{
Expand Down

0 comments on commit 0c6a593

Please sign in to comment.