Skip to content

Commit cb33011

Browse files
authored
Merge pull request #3328 from tautschnig/vs-shadow-10
Do not shadow s, symbol [blocks: #2310]
2 parents 9ac32c1 + df7a89e commit cb33011

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/linking/remove_internal_symbols.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,18 +21,18 @@ Author: Daniel Kroening
2121

2222
static void get_symbols(
2323
const namespacet &ns,
24-
const symbolt &symbol,
24+
const symbolt &in_symbol,
2525
find_symbols_sett &dest)
2626
{
2727
std::vector<const symbolt *> working_set;
2828

29-
working_set.push_back(&symbol);
29+
working_set.push_back(&in_symbol);
3030

3131
while(!working_set.empty())
3232
{
33-
const symbolt *s = working_set.back();
33+
const symbolt *current_symbol_ptr = working_set.back();
3434
working_set.pop_back();
35-
const symbolt &symbol = *s;
35+
const symbolt &symbol = *current_symbol_ptr;
3636

3737
if(!dest.insert(symbol.name).second)
3838
continue;

0 commit comments

Comments
 (0)