diff options
author | George Burgess IV <george.burgess.iv@gmail.com> | 2016-12-20 18:46:27 +0000 |
---|---|---|
committer | George Burgess IV <george.burgess.iv@gmail.com> | 2016-12-20 18:46:27 +0000 |
commit | 45a540f72fb26fc1cd28325becac78bdacb4a295 (patch) | |
tree | 9e32ca97b6dbaf34f034c63460f2322923440345 /llvm/lib/Analysis/MemoryBuiltins.cpp | |
parent | b861ce4531f5f4cfe24fae22dc5b5e765d10dcc9 (diff) | |
download | bcm5719-llvm-45a540f72fb26fc1cd28325becac78bdacb4a295.tar.gz bcm5719-llvm-45a540f72fb26fc1cd28325becac78bdacb4a295.zip |
Replace std::find_if with llvm::find_if. NFC.
llvm-svn: 290190
Diffstat (limited to 'llvm/lib/Analysis/MemoryBuiltins.cpp')
-rw-r--r-- | llvm/lib/Analysis/MemoryBuiltins.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/llvm/lib/Analysis/MemoryBuiltins.cpp b/llvm/lib/Analysis/MemoryBuiltins.cpp index d7fcb0fccb8..0f4bfb8e2fb 100644 --- a/llvm/lib/Analysis/MemoryBuiltins.cpp +++ b/llvm/lib/Analysis/MemoryBuiltins.cpp @@ -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; |