Skip to content

Commit 3516d1f

Browse files
authored
Merge pull request #8188 from tautschnig/cleanup/scope-tree-comment
Scope tree: fix and clarify comment
2 parents 2d96b83 + ee6cd83 commit 3516d1f

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/goto-programs/goto_convert.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,8 @@ void goto_convertt::finish_gotos(goto_programt &dest, const irep_idt &mode)
285285
targets.scope_stack.get_nearest_common_ancestor_info(
286286
goto_target, label_target);
287287

288-
// If our goto had no variables of note, just skip
288+
// If our goto had no variables of note, just skip (0 is the index of the
289+
// root of the scope tree)
289290
if(goto_target != 0)
290291
{
291292
// If the goto recorded a destructor stack, execute as much as is

src/goto-programs/scope_tree.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ const ancestry_resultt scope_treet::get_nearest_common_ancestor_info(
6161
}
6262
}
6363

64-
// At this point it dosen't matter which index we return as both are the same.
64+
// At this point it doesn't matter which index we return as both are the same.
6565
return {right_index, left_unique_count, right_unique_count};
6666
}
6767

0 commit comments

Comments
 (0)