Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/util/rename_symbol.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ bool rename_symbolt::rename(typet &dest) const
}
}
}
else if(dest.id()==ID_symbol)
else if(dest.id() == ID_symbol_type)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As (now!) per coding standards these should be can_cast_type<symbol_typet>(dest)

{
type_mapt::const_iterator it=
type_map.find(to_symbol_type(dest).get_identifier());
Expand Down Expand Up @@ -253,7 +253,7 @@ bool rename_symbolt::have_to_rename(const typet &dest) const
return true;
}
}
else if(dest.id()==ID_symbol)
else if(dest.id() == ID_symbol_type)
{
const irep_idt &identifier = to_symbol_type(dest).get_identifier();
return type_map.find(identifier) != type_map.end();
Expand Down