@@ -148,7 +148,7 @@ void goto_convertt::finish_gotos(goto_programt &dest, const irep_idt &mode)
148
148
// Compare the currently-live variables on the path of the GOTO and label.
149
149
// We want to work out what variables should die during the jump.
150
150
ancestry_resultt intersection_result =
151
- targets.destructor_stack .get_nearest_common_ancestor_info (
151
+ targets.scope_stack .get_nearest_common_ancestor_info (
152
152
goto_target, label_target);
153
153
154
154
// If our goto had no variables of note, just skip
@@ -339,7 +339,7 @@ void goto_convertt::convert_label(
339
339
dest.destructive_append (tmp);
340
340
341
341
targets.labels .insert (
342
- {label, {target, targets.destructor_stack .get_current_node ()}});
342
+ {label, {target, targets.scope_stack .get_current_node ()}});
343
343
target->labels .push_front (label);
344
344
}
345
345
}
@@ -545,8 +545,7 @@ void goto_convertt::convert_block(
545
545
const source_locationt &end_location=code.end_location ();
546
546
547
547
// this saves the index of the destructor stack
548
- node_indext old_stack_top =
549
- targets.destructor_stack .get_current_node ();
548
+ node_indext old_stack_top = targets.scope_stack .get_current_node ();
550
549
551
550
// now convert block
552
551
for (const auto &b_code : code.statements ())
@@ -564,7 +563,7 @@ void goto_convertt::convert_block(
564
563
unwind_destructor_stack (end_location, dest, mode, old_stack_top);
565
564
566
565
// Set the current node of our destructor stack back to before the block.
567
- targets.destructor_stack .set_current_node (old_stack_top);
566
+ targets.scope_stack .set_current_node (old_stack_top);
568
567
}
569
568
570
569
void goto_convertt::convert_expression (
@@ -653,7 +652,7 @@ void goto_convertt::convert_frontend_decl(
653
652
654
653
{
655
654
code_deadt code_dead (symbol_expr);
656
- targets.destructor_stack .add (code_dead, {});
655
+ targets.scope_stack .add (code_dead, {});
657
656
}
658
657
659
658
// do destructor
@@ -665,7 +664,7 @@ void goto_convertt::convert_frontend_decl(
665
664
address_of_exprt this_expr (symbol_expr, pointer_type (symbol.type ));
666
665
destructor.arguments ().push_back (this_expr);
667
666
668
- targets.destructor_stack .add (destructor, {});
667
+ targets.scope_stack .add (destructor, {});
669
668
}
670
669
}
671
670
@@ -1367,7 +1366,7 @@ void goto_convertt::convert_goto(const code_gotot &code, goto_programt &dest)
1367
1366
dest.add (goto_programt::make_incomplete_goto (code, code.source_location ()));
1368
1367
1369
1368
// remember it to do the target later
1370
- targets.gotos .emplace_back (t, targets.destructor_stack .get_current_node ());
1369
+ targets.gotos .emplace_back (t, targets.scope_stack .get_current_node ());
1371
1370
}
1372
1371
1373
1372
void goto_convertt::convert_gcc_computed_goto (
@@ -1391,7 +1390,7 @@ void goto_convertt::convert_start_thread(
1391
1390
1392
1391
// remember it to do target later
1393
1392
targets.gotos .emplace_back (
1394
- start_thread, targets.destructor_stack .get_current_node ());
1393
+ start_thread, targets.scope_stack .get_current_node ());
1395
1394
}
1396
1395
1397
1396
void goto_convertt::convert_end_thread (
0 commit comments