Skip to content

Commit f25cdb0

Browse files
author
Daniel Kroening
authored
Merge pull request #3347 from tautschnig/vs-escape
Avoid shadowing in escape analysis [blocks: #2310]
2 parents 0b23600 + 72ecd25 commit f25cdb0

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/analyses/escape_analysis.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -192,9 +192,9 @@ void escape_domaint::transform(
192192
get_rhs_cleanup(code_assign.rhs(), cleanup_functions);
193193
assign_lhs_cleanup(code_assign.lhs(), cleanup_functions);
194194

195-
std::set<irep_idt> aliases;
196-
get_rhs_aliases(code_assign.rhs(), aliases);
197-
assign_lhs_aliases(code_assign.lhs(), aliases);
195+
std::set<irep_idt> rhs_aliases;
196+
get_rhs_aliases(code_assign.rhs(), rhs_aliases);
197+
assign_lhs_aliases(code_assign.lhs(), rhs_aliases);
198198
}
199199
break;
200200

@@ -238,9 +238,9 @@ void escape_domaint::transform(
238238
std::set<irep_idt> lhs_set;
239239
get_rhs_aliases(lhs, lhs_set);
240240

241-
for(const auto &lhs : lhs_set)
241+
for(const auto &l : lhs_set)
242242
{
243-
cleanup_map[lhs].cleanup_functions.insert(cleanup_function);
243+
cleanup_map[l].cleanup_functions.insert(cleanup_function);
244244
}
245245
}
246246
}

0 commit comments

Comments
 (0)