From 45a540f72fb26fc1cd28325becac78bdacb4a295 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. llvm-svn: 290190 --- llvm/lib/Analysis/MemoryBuiltins.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) 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; -- 2.7.4