Skip to content

Commit 21f9869

Browse files
committed
test
1 parent 0c31ea5 commit 21f9869

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

llvm/include/llvm/ADT/SmallSet.h

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -242,10 +242,7 @@ class SmallSet {
242242
bool isSmall() const { return Set.empty(); }
243243

244244
VIterator vfind(const T &V) const {
245-
for (VIterator I = Vector.begin(), E = Vector.end(); I != E; ++I)
246-
if (*I == V)
247-
return I;
248-
return Vector.end();
245+
return std::find(Vector.begin(), Vector.end(), V);
249246
}
250247
};
251248

0 commit comments

Comments
 (0)