Skip to content

Commit 649afb6

Browse files
Address a comment.
1 parent d3d7fde commit 649afb6

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

llvm/include/llvm/ADT/SmallPtrSet.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -148,11 +148,11 @@ class SmallPtrSetImplBase : public DebugEpochBase {
148148
return isSmall() ? CurArray + NumNonEmpty : CurArray + CurArraySize;
149149
}
150150

151-
iterator_range<const void **> smallBuckets() {
151+
iterator_range<const void **> small_buckets() {
152152
return make_range(CurArray, CurArray + NumNonEmpty);
153153
}
154154

155-
iterator_range<const void *const *> smallBuckets() const {
155+
iterator_range<const void *const *> small_buckets() const {
156156
return {CurArray, CurArray + NumNonEmpty};
157157
}
158158

@@ -162,7 +162,7 @@ class SmallPtrSetImplBase : public DebugEpochBase {
162162
std::pair<const void *const *, bool> insert_imp(const void *Ptr) {
163163
if (isSmall()) {
164164
// Check to see if it is already in the set.
165-
for (const void *&Bucket : smallBuckets()) {
165+
for (const void *&Bucket : small_buckets()) {
166166
if (Bucket == Ptr)
167167
return std::make_pair(&Bucket, false);
168168
}
@@ -184,7 +184,7 @@ class SmallPtrSetImplBase : public DebugEpochBase {
184184
/// in.
185185
bool erase_imp(const void * Ptr) {
186186
if (isSmall()) {
187-
for (const void *&Bucket : smallBuckets()) {
187+
for (const void *&Bucket : small_buckets()) {
188188
if (Bucket == Ptr) {
189189
Bucket = CurArray[--NumNonEmpty];
190190
incrementEpoch();
@@ -212,7 +212,7 @@ class SmallPtrSetImplBase : public DebugEpochBase {
212212
const void *const * find_imp(const void * Ptr) const {
213213
if (isSmall()) {
214214
// Linear search for the item.
215-
for (const void *const &Bucket : smallBuckets())
215+
for (const void *const &Bucket : small_buckets())
216216
if (Bucket == Ptr)
217217
return &Bucket;
218218
return EndPointer();
@@ -227,7 +227,7 @@ class SmallPtrSetImplBase : public DebugEpochBase {
227227
bool contains_imp(const void *Ptr) const {
228228
if (isSmall()) {
229229
// Linear search for the item.
230-
for (const void *const &Bucket : smallBuckets())
230+
for (const void *const &Bucket : small_buckets())
231231
if (Bucket == Ptr)
232232
return true;
233233
return false;

0 commit comments

Comments
 (0)