Skip to content

Commit 6ceb610

Browse files
Clean-up irep-id emptyness checks in goto-programs
1 parent 6f61609 commit 6ceb610

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/goto-programs/goto_inline_class.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ void goto_inlinet::parameter_assignments(
5757

5858
const irep_idt &identifier=parameter.get_identifier();
5959

60-
if(identifier==irep_idt())
60+
if(identifier.empty())
6161
{
6262
error().source_location=source_location;
6363
error() << "no identifier for function parameter" << eom;
@@ -182,7 +182,7 @@ void goto_inlinet::parameter_destruction(
182182

183183
const irep_idt &identifier=parameter.get_identifier();
184184

185-
if(identifier==irep_idt())
185+
if(identifier.empty())
186186
{
187187
error().source_location=source_location;
188188
error() << "no identifier for function parameter" << eom;
@@ -328,13 +328,13 @@ void replace_location(
328328

329329
dest=new_location;
330330

331-
if(comment!=irep_idt())
331+
if(!comment.empty())
332332
dest.set_comment(comment);
333333

334-
if(property_class!=irep_idt())
334+
if(!property_class.empty())
335335
dest.set_property_class(property_class);
336336

337-
if(property_id!=irep_idt())
337+
if(!property_id.empty())
338338
dest.set_property_id(property_id);
339339
}
340340

0 commit comments

Comments
 (0)