[ExecutionEngine] Use llvm::is_contained (NFC)

This commit is contained in:
Kazu Hirata 2023-10-20 00:37:47 -07:00
parent c5d8bf7196
commit 848336db8a

View File

@ -1353,7 +1353,7 @@ void JITDylib::addToLinkOrder(const JITDylibSearchOrder &NewLinks) {
ES.runSessionLocked([&]() {
for (auto &KV : NewLinks) {
// Skip elements of NewLinks that are already in the link order.
if (llvm::find(LinkOrder, KV) != LinkOrder.end())
if (llvm::is_contained(LinkOrder, KV))
continue;
LinkOrder.push_back(std::move(KV));