We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent be29f0d commit 3ebc935Copy full SHA for 3ebc935
llvm/include/llvm/ADT/ImmutableSet.h
@@ -635,9 +635,7 @@ class ImutAVLFactory {
635
// if find a collision compare those trees by their contents.
636
unsigned digest = TNew->computeDigest();
637
TreeTy *&entry = Cache[maskCacheIndex(digest)];
638
- do {
639
- if (!entry)
640
- break;
+ if (entry) {
641
for (TreeTy *T = entry ; T != nullptr; T = T->next) {
642
// Compare the Contents('T') with Contents('TNew')
643
typename TreeTy::iterator TI = T->begin(), TE = T->end();
@@ -653,7 +651,6 @@ class ImutAVLFactory {
653
651
entry->prev = TNew;
654
652
TNew->next = entry;
655
}
656
- while (false);
657
658
entry = TNew;
659
TNew->IsCanonicalized = true;
0 commit comments