summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Analysis/MemoryBuiltins.cpp
diff options
context:
space:
mode:
authorGeorge Burgess IV <george.burgess.iv@gmail.com>2016-12-20 18:46:27 +0000
committerGeorge Burgess IV <george.burgess.iv@gmail.com>2016-12-20 18:46:27 +0000
commit45a540f72fb26fc1cd28325becac78bdacb4a295 (patch)
tree9e32ca97b6dbaf34f034c63460f2322923440345 /llvm/lib/Analysis/MemoryBuiltins.cpp
parentb861ce4531f5f4cfe24fae22dc5b5e765d10dcc9 (diff)
downloadbcm5719-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.cpp9
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;
OpenPOWER on IntegriCloud