From: George Burgess IV Date: Tue, 20 Dec 2016 18:46:27 +0000 (+0000) Subject: Replace std::find_if with llvm::find_if. NFC. X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=45a540f72fb26fc1cd28325becac78bdacb4a295;p=platform%2Fupstream%2Fllvm.git Replace std::find_if with llvm::find_if. NFC. llvm-svn: 290190 --- diff --git a/llvm/lib/Analysis/MemoryBuiltins.cpp b/llvm/lib/Analysis/MemoryBuiltins.cpp index d7fcb0f..0f4bfb8 100644 --- a/llvm/lib/Analysis/MemoryBuiltins.cpp +++ b/llvm/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;