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 6e97583 commit fab97d4Copy full SHA for fab97d4
llvm/include/llvm/ADT/SmallPtrSet.h
@@ -219,9 +219,9 @@ class SmallPtrSetImplBase : public DebugEpochBase {
219
bool contains_imp(const void *Ptr) const {
220
if (isSmall()) {
221
// Linear search for the item.
222
- for (const void *const *APtr = SmallArray, *const *E =
223
- SmallArray + NumNonEmpty;
224
- APtr != E; ++APtr)
+ const void *const *APtr = SmallArray;
+ const void *const *E = SmallArray + NumNonEmpty;
+ for (; APtr != E; ++APtr)
225
if (*APtr == Ptr)
226
return true;
227
return false;
0 commit comments