Skip to content

Commit 0b23600

Browse files
author
Daniel Kroening
authored
Merge pull request #3356 from tautschnig/vs-shadow-11
Do not shadow raw_ptr, use_count
2 parents 9994949 + fc7bcfd commit 0b23600

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/util/sharing_map.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -487,19 +487,19 @@ ::count_unmarked_nodes(bool leafs_only, std::set<void *> &marked, bool mark)
487487

488488
for(const auto &l : ll)
489489
{
490-
const unsigned use_count = l.data.use_count();
491-
void *raw_ptr = l.data.get();
490+
const unsigned leaf_use_count = l.data.use_count();
491+
void *leaf_raw_ptr = l.data.get();
492492

493-
if(use_count >= 2)
493+
if(leaf_use_count >= 2)
494494
{
495-
if(marked.find(raw_ptr) != marked.end())
495+
if(marked.find(leaf_raw_ptr) != marked.end())
496496
{
497497
continue;
498498
}
499499

500500
if(mark)
501501
{
502-
marked.insert(raw_ptr);
502+
marked.insert(leaf_raw_ptr);
503503
}
504504
}
505505

0 commit comments

Comments
 (0)