File tree 1 file changed +2
-4
lines changed
1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -775,15 +775,15 @@ bool goto_program2codet::set_block_end_points(
775
775
cases_listt &cases,
776
776
std::set<unsigned > &processed_locations)
777
777
{
778
- std::map <goto_programt::const_targett, std:: size_t > targets_done;
778
+ std::set <goto_programt::const_targett> targets_done;
779
779
780
780
for (cases_listt::iterator it=cases.begin ();
781
781
it!=cases.end ();
782
782
++it)
783
783
{
784
784
// some branch targets may be shared by multiple branch instructions,
785
785
// as in case 1: case 2: code; we build a nested code_switch_caset
786
- if (targets_done.find (it->case_start )!=targets_done. end () )
786
+ if (! targets_done.insert (it->case_start ). second )
787
787
continue ;
788
788
789
789
// compute the block that belongs to this case
@@ -819,8 +819,6 @@ bool goto_program2codet::set_block_end_points(
819
819
820
820
it->case_last =case_end;
821
821
}
822
-
823
- targets_done[it->case_start ]=1 ;
824
822
}
825
823
826
824
return false ;
You can’t perform that action at this time.
0 commit comments