@@ -210,11 +210,8 @@ void escape_domaint::transform(
210210 break ;
211211
212212 case DEAD:
213- {
214- const code_deadt &code_dead=to_code_dead (instruction.code );
215- aliases.isolate (code_dead.get_identifier ());
216- assign_lhs_cleanup (code_dead.symbol (), std::set<irep_idt>());
217- }
213+ aliases.isolate (instruction.dead_symbol ().get_identifier ());
214+ assign_lhs_cleanup (instruction.dead_symbol (), std::set<irep_idt>());
218215 break ;
219216
220217 case FUNCTION_CALL:
@@ -487,14 +484,14 @@ void escape_analysist::instrument(
487484 }
488485 else if (instruction.type == DEAD)
489486 {
490- const code_deadt &code_dead = to_code_dead ( instruction.code );
487+ const auto &dead_symbol = instruction.dead_symbol ( );
491488
492489 std::set<irep_idt> cleanup_functions1;
493490
494491 const escape_domaint &d = operator [](i_it);
495492
496493 const escape_domaint::cleanup_mapt::const_iterator m_it =
497- d.cleanup_map .find (" &" + id2string (code_dead .get_identifier ()));
494+ d.cleanup_map .find (" &" + id2string (dead_symbol .get_identifier ()));
498495
499496 // does it have a cleanup function for the object?
500497 if (m_it != d.cleanup_map .end ())
@@ -506,22 +503,12 @@ void escape_analysist::instrument(
506503
507504 std::set<irep_idt> cleanup_functions2;
508505
509- d.check_lhs (code_dead. symbol () , cleanup_functions2);
506+ d.check_lhs (dead_symbol , cleanup_functions2);
510507
511508 insert_cleanup (
512- gf_entry.second ,
513- i_it,
514- code_dead.symbol (),
515- cleanup_functions1,
516- true ,
517- ns);
509+ gf_entry.second , i_it, dead_symbol, cleanup_functions1, true , ns);
518510 insert_cleanup (
519- gf_entry.second ,
520- i_it,
521- code_dead.symbol (),
522- cleanup_functions2,
523- false ,
524- ns);
511+ gf_entry.second , i_it, dead_symbol, cleanup_functions2, false , ns);
525512
526513 for (const auto &c : cleanup_functions1)
527514 {
0 commit comments