Skip to content

Commit 06638de

Browse files
Clean-up irep-id emptyness checks in analyses
1 parent e2afe93 commit 06638de

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/analyses/goto_check.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1689,21 +1689,21 @@ void goto_checkt::goto_check(
16891689
{
16901690
i_it->source_location.id(irep_idt());
16911691

1692-
if(it->source_location.get_file()!=irep_idt())
1692+
if(!it->source_location.get_file().empty())
16931693
i_it->source_location.set_file(it->source_location.get_file());
16941694

1695-
if(it->source_location.get_line()!=irep_idt())
1695+
if(!it->source_location.get_line().empty())
16961696
i_it->source_location.set_line(it->source_location.get_line());
16971697

1698-
if(it->source_location.get_function()!=irep_idt())
1698+
if(!it->source_location.get_function().empty())
16991699
i_it->source_location.set_function(
17001700
it->source_location.get_function());
17011701

1702-
if(it->source_location.get_column()!=irep_idt())
1702+
if(!it->source_location.get_column().empty())
17031703
i_it->source_location.set_column(it->source_location.get_column());
17041704
}
17051705

1706-
if(i_it->function==irep_idt())
1706+
if(i_it->function.empty())
17071707
i_it->function=it->function;
17081708
}
17091709

0 commit comments

Comments
 (0)