mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-12-02 18:58:15 +00:00
[ExecutionEngine] Use llvm::is_contained (NFC)
This commit is contained in:
parent
c5d8bf7196
commit
848336db8a
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user