Skip to content

Commit f1ab90a

Browse files
[IR] Use llvm::find (NFC)
1 parent 401f039 commit f1ab90a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/IR/Metadata.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1566,7 +1566,7 @@ void Instruction::updateDIAssignIDMapping(DIAssignID *ID) {
15661566
"Expect existing attachment to be mapped");
15671567

15681568
auto &InstVec = InstrsIt->second;
1569-
auto *InstIt = std::find(InstVec.begin(), InstVec.end(), this);
1569+
auto *InstIt = llvm::find(InstVec, this);
15701570
assert(InstIt != InstVec.end() &&
15711571
"Expect instruction to be mapped to attachment");
15721572
// The vector contains a ptr to this. If this is the only element in the

0 commit comments

Comments
 (0)