We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ebf5ce8 commit 6dd3d3cCopy full SHA for 6dd3d3c
src/util/replace_symbol.cpp
@@ -181,6 +181,19 @@ bool replace_symbolt::replace(typet &dest) const
181
if(!replace(p))
182
result=false;
183
}
184
+ else if(dest.id() == ID_union_tag ||
185
+ dest.id() == ID_struct_tag ||
186
+ dest.id() == ID_c_enum_tag)
187
+ {
188
+ type_mapt::const_iterator it =
189
+ type_map.find(to_tag_type(dest).get_identifier());
190
+
191
+ if(it != type_map.end())
192
193
+ dest = it->second;
194
+ result = false;
195
+ }
196
197
else if(dest.id()==ID_array)
198
{
199
array_typet &array_type=to_array_type(dest);
0 commit comments