mirror of
https://github.com/RPCSX/llvm.git
synced 2025-01-10 22:46:20 +00:00
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
This commit is contained in:
parent
33ae526547
commit
8a2cde8e71
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user