File tree Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -166,10 +166,19 @@ void goto_convert_functionst::convert_function(
166
166
// we have a body, make sure all parameter names are valid
167
167
for (const auto &p : f.parameter_identifiers )
168
168
{
169
- DATA_INVARIANT (!p.empty (), " parameter identifier should not be empty" );
170
- DATA_INVARIANT (
169
+ DATA_INVARIANT_WITH_DIAGNOSTICS (
170
+ !p.empty (),
171
+ " parameter identifier should not be empty" ,
172
+ " function:" ,
173
+ identifier);
174
+
175
+ DATA_INVARIANT_WITH_DIAGNOSTICS (
171
176
symbol_table.has_symbol (p),
172
- " parameter identifier must be a known symbol" );
177
+ " parameter identifier must be a known symbol" ,
178
+ " function:" ,
179
+ identifier,
180
+ " parameter:" ,
181
+ p);
173
182
}
174
183
175
184
lifetimet parent_lifetime = lifetime;
You can’t perform that action at this time.
0 commit comments