We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d33bd22 commit 6a12505Copy full SHA for 6a12505
src/util/replace_symbol.cpp
@@ -197,6 +197,19 @@ bool replace_symbolt::replace(typet &dest) const
197
result=false;
198
}
199
200
+ else if(dest.id() == ID_union_tag ||
201
+ dest.id() == ID_struct_tag ||
202
+ dest.id() == ID_c_enum_tag)
203
+ {
204
+ type_mapt::const_iterator it =
205
+ type_map.find(to_tag_type(dest).get_identifier());
206
+
207
+ if(it != type_map.end())
208
209
+ dest = it->second;
210
+ result = false;
211
+ }
212
213
else if(dest.id()==ID_array)
214
{
215
array_typet &array_type=to_array_type(dest);
0 commit comments