Skip to content

Commit df528eb

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

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/goto-symex/symex_builtin_functions.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ void goto_symext::symex_gcc_builtin_va_arg_next(
221221

222222
exprt rhs=zero_initializer(lhs.type(), code.source_location(), ns);
223223

224-
if(id!=irep_idt())
224+
if(!id.empty())
225225
{
226226
// strip last name off id to get function name
227227
std::size_t pos=id2string(id).rfind("::");

src/goto-symex/symex_function_call.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ void goto_symext::parameter_assignments(
6262

6363
const irep_idt &identifier=parameter.get_identifier();
6464

65-
if(identifier==irep_idt())
65+
if(identifier.empty())
6666
throw "no identifier for function parameter";
6767

6868
const symbolt &symbol=ns.lookup(identifier);

0 commit comments

Comments
 (0)