[llvm] r290190 - Replace std::find_if with llvm::find_if. NFC.
George Burgess IV via llvm-commits
llvm-commits at lists.llvm.org
Tue Dec 20 10:46:28 PST 2016
Author: gbiv
Date: Tue Dec 20 12:46:27 2016
New Revision: 290190
URL: http://llvm.org/viewvc/llvm-project?rev=290190&view=rev
Log:
Replace std::find_if with llvm::find_if. NFC.
Modified:
llvm/trunk/lib/Analysis/MemoryBuiltins.cpp
Modified: llvm/trunk/lib/Analysis/MemoryBuiltins.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Analysis/MemoryBuiltins.cpp?rev=290190&r1=290189&r2=290190&view=diff
==============================================================================
--- llvm/trunk/lib/Analysis/MemoryBuiltins.cpp (original)
+++ llvm/trunk/lib/Analysis/MemoryBuiltins.cpp Tue Dec 20 12:46:27 2016
@@ -134,11 +134,10 @@ static Optional<AllocFnsTy> getAllocatio
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;
More information about the llvm-commits
mailing list