Skip to content
Closed
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
13 changes: 13 additions & 0 deletions src/util/replace_symbol.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,19 @@ bool replace_symbolt::replace(typet &dest) const
if(!replace(p))
result=false;
}
else if(dest.id() == ID_union_tag ||
dest.id() == ID_struct_tag ||
dest.id() == ID_c_enum_tag)
{
type_mapt::const_iterator it =
type_map.find(to_tag_type(dest).get_identifier());

if(it != type_map.end())
{
dest = it->second;
result = false;
}
}
else if(dest.id()==ID_array)
{
array_typet &array_type=to_array_type(dest);
Expand Down