File tree 1 file changed +9
-8
lines changed 1 file changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -206,20 +206,21 @@ void remove_returnst::do_function_calls(
206
206
rhs = side_effect_expr_nondett (
207
207
function_call.lhs ().type (), i_it->source_location );
208
208
209
- goto_programt::targett t_a=goto_program.insert_after (i_it);
210
- t_a->make_assignment ();
211
- t_a->source_location =i_it->source_location ;
212
- t_a->code =code_assignt (function_call.lhs (), rhs);
209
+ goto_programt::targett t_a = goto_program.insert_after (
210
+ i_it,
211
+ goto_programt::make_assignment (
212
+ code_assignt (function_call.lhs (), rhs), i_it->source_location ));
213
+ t_a->function =i_it->function ;
213
214
214
215
// fry the previous assignment
215
216
function_call.lhs ().make_nil ();
216
217
217
218
if (!is_stub)
218
219
{
219
- goto_programt::targett t_d= goto_program.insert_after (t_a);
220
- t_d-> make_dead ();
221
- t_d-> source_location = i_it->source_location ;
222
- t_d->code = code_deadt (*return_value) ;
220
+ goto_programt::targett t_d = goto_program.insert_after (
221
+ t_a,
222
+ goto_programt::make_dead (*return_value, i_it->source_location )) ;
223
+ t_d->function =i_it-> function ;
223
224
}
224
225
}
225
226
}
You can’t perform that action at this time.
0 commit comments