File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -100,6 +100,10 @@ bool replace_symbolt::replace(
100100 if (c_sizeof_type.is_not_nil () && have_to_replace (c_sizeof_type))
101101 result &= replace (static_cast <typet&>(dest.add (ID_C_c_sizeof_type)));
102102
103+ const typet &type_arg = static_cast <const typet &>(dest.find (ID_type_arg));
104+ if (type_arg.is_not_nil () && have_to_replace (type_arg))
105+ result &= replace (static_cast <typet &>(dest.add (ID_type_arg)));
106+
103107 const typet &va_arg_type =
104108 static_cast <const typet&>(dest.find (ID_C_va_arg_type));
105109 if (va_arg_type.is_not_nil () && have_to_replace (va_arg_type))
@@ -133,6 +137,12 @@ bool replace_symbolt::have_to_replace(const exprt &dest) const
133137 if (have_to_replace (static_cast <const typet &>(c_sizeof_type)))
134138 return true ;
135139
140+ const irept &type_arg = dest.find (ID_type_arg);
141+
142+ if (type_arg.is_not_nil ())
143+ if (have_to_replace (static_cast <const typet &>(type_arg)))
144+ return true ;
145+
136146 const irept &va_arg_type=dest.find (ID_C_va_arg_type);
137147
138148 if (va_arg_type.is_not_nil ())
You can’t perform that action at this time.
0 commit comments