From 8a2cde8e71a98f659497b570d8ac9f91124021c1 Mon Sep 17 00:00:00 2001 From: George Burgess IV Date: Tue, 20 Dec 2016 18:46:27 +0000 Subject: [PATCH] Replace std::find_if with llvm::find_if. NFC. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@290190 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Analysis/MemoryBuiltins.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/lib/Analysis/MemoryBuiltins.cpp b/lib/Analysis/MemoryBuiltins.cpp index d7fcb0fccb8..0f4bfb8e2fb 100644 --- a/lib/Analysis/MemoryBuiltins.cpp +++ b/lib/Analysis/MemoryBuiltins.cpp @@ -134,11 +134,10 @@ static Optional getAllocationData(const Value *V, AllocType AllocTy, if (!TLI || !TLI->getLibFunc(FnName, TLIFn) || !TLI->has(TLIFn)) return None; - const auto *Iter = - std::find_if(std::begin(AllocationFnData), std::end(AllocationFnData), - [TLIFn](const std::pair &P) { - return P.first == TLIFn; - }); + const auto *Iter = find_if( + AllocationFnData, [TLIFn](const std::pair &P) { + return P.first == TLIFn; + }); if (Iter == std::end(AllocationFnData)) return None;