@@ -246,7 +246,7 @@ void remove_exceptionst::instrument_exception_handler(
246246 instr_it,
247247 goto_programt::make_assignment (
248248 code_assignt (thrown_global_symbol, null_voidptr),
249- instr_it->source_location ));
249+ instr_it->source_location () ));
250250
251251 // add the assignment exc = @inflight_exception (before the null assignment)
252252 goto_program.insert_after (
@@ -255,7 +255,7 @@ void remove_exceptionst::instrument_exception_handler(
255255 code_assignt (
256256 thrown_exception_local,
257257 typecast_exprt (thrown_global_symbol, thrown_exception_local.type ())),
258- instr_it->source_location ));
258+ instr_it->source_location () ));
259259 }
260260
261261 instr_it->turn_into_skip ();
@@ -362,7 +362,7 @@ void remove_exceptionst::add_exception_dispatch_sequence(
362362 goto_programt::targett t_exc = goto_program.insert_after (
363363 instr_it,
364364 goto_programt::make_goto (
365- new_state_pc, true_exprt (), instr_it->source_location ));
365+ new_state_pc, true_exprt (), instr_it->source_location () ));
366366
367367 // use instanceof to check that this is the correct handler
368368 struct_tag_typet type (stack_catch[i][j].first );
@@ -385,13 +385,13 @@ void remove_exceptionst::add_exception_dispatch_sequence(
385385 }
386386
387387 *default_dispatch = goto_programt::make_goto (
388- default_target, true_exprt (), instr_it->source_location );
388+ default_target, true_exprt (), instr_it->source_location () );
389389
390390 // add dead instructions
391391 for (const auto &local : locals)
392392 {
393393 goto_program.insert_after (
394- instr_it, goto_programt::make_dead (local, instr_it->source_location ));
394+ instr_it, goto_programt::make_dead (local, instr_it->source_location () ));
395395 }
396396}
397397
@@ -476,7 +476,7 @@ remove_exceptionst::instrument_function_call(
476476 goto_programt::make_goto (
477477 next_it,
478478 no_exception_currently_in_flight,
479- instr_it->source_location ));
479+ instr_it->source_location () ));
480480
481481 return instrumentation_resultt::ADDED_CODE_WITH_MAY_THROW;
482482 }
0 commit comments