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 373206d commit 2b8efe1Copy full SHA for 2b8efe1
llvm/include/llvm/ADT/SmallPtrSet.h
@@ -435,7 +435,8 @@ class SmallPtrSetImpl : public SmallPtrSetImplBase {
435
bool remove_if(UnaryPredicate P) {
436
bool Removed = false;
437
if (isSmall()) {
438
- const void **APtr = CurArray, **E = CurArray + NumEntries;
+ auto Buckets = small_buckets();
439
+ const void **APtr = Buckets.begin(), **E = Buckets.end();
440
while (APtr != E) {
441
PtrType Ptr = PtrTraits::getFromVoidPointer(const_cast<void *>(*APtr));
442
if (P(Ptr)) {
0 commit comments