Skip to content

Commit ebc90d5

Browse files
[SandboxVectorizer] Use llvm::find (NFC) (#143724)
llvm::find allows us to pass a range.
1 parent ace356b commit ebc90d5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/include/llvm/Transforms/Vectorize/SandboxVectorizer/SeedCollector.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ class SeedBundle {
6868
/// the seeds in a bundle. This allows constant time evaluation
6969
/// and "removal" from the list.
7070
void setUsed(Instruction *I) {
71-
auto It = std::find(begin(), end(), I);
71+
auto It = llvm::find(*this, I);
7272
assert(It != end() && "Instruction not in the bundle!");
7373
auto Idx = It - begin();
7474
setUsed(Idx, 1, /*VerifyUnused=*/false);

0 commit comments

Comments
 (0)