Replace std::find_if with llvm::find_if. NFC.
authorGeorge Burgess IV <george.burgess.iv@gmail.com>
Tue, 20 Dec 2016 18:46:27 +0000 (18:46 +0000)
committerGeorge Burgess IV <george.burgess.iv@gmail.com>
Tue, 20 Dec 2016 18:46:27 +0000 (18:46 +0000)
llvm-svn: 290190

llvm/lib/Analysis/MemoryBuiltins.cpp

index d7fcb0f..0f4bfb8 100644 (file)
@@ -134,11 +134,10 @@ static Optional<AllocFnsTy> 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<LibFunc::Func, AllocFnsTy> &P) {
-                     return P.first == TLIFn;
-                   });
+  const auto *Iter = find_if(
+      AllocationFnData, [TLIFn](const std::pair<LibFunc::Func, AllocFnsTy> &P) {
+        return P.first == TLIFn;
+      });
 
   if (Iter == std::end(AllocationFnData))
     return None;