File tree 1 file changed +10
-0
lines changed
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(
100
100
if (c_sizeof_type.is_not_nil () && have_to_replace (c_sizeof_type))
101
101
result &= replace (static_cast <typet&>(dest.add (ID_C_c_sizeof_type)));
102
102
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
+
103
107
const typet &va_arg_type =
104
108
static_cast <const typet&>(dest.find (ID_C_va_arg_type));
105
109
if (va_arg_type.is_not_nil () && have_to_replace (va_arg_type))
@@ -136,6 +140,12 @@ bool replace_symbolt::have_to_replace(const exprt &dest) const
136
140
if (have_to_replace (static_cast <const typet &>(c_sizeof_type)))
137
141
return true ;
138
142
143
+ const irept &type_arg = dest.find (ID_type_arg);
144
+
145
+ if (type_arg.is_not_nil ())
146
+ if (have_to_replace (static_cast <const typet &>(type_arg)))
147
+ return true ;
148
+
139
149
const irept &va_arg_type=dest.find (ID_C_va_arg_type);
140
150
141
151
if (va_arg_type.is_not_nil ())
You can’t perform that action at this time.
0 commit comments