From 848336db8a6e8b934c09a4207dfdf50572fffae2 Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Fri, 20 Oct 2023 00:37:47 -0700 Subject: [PATCH] [ExecutionEngine] Use llvm::is_contained (NFC) --- llvm/lib/ExecutionEngine/Orc/Core.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/lib/ExecutionEngine/Orc/Core.cpp b/llvm/lib/ExecutionEngine/Orc/Core.cpp index f4c0ecf784cd..56838e9bc86d 100644 --- a/llvm/lib/ExecutionEngine/Orc/Core.cpp +++ b/llvm/lib/ExecutionEngine/Orc/Core.cpp @@ -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));