aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/CodeGenPrepare.cpp
diff options
context:
space:
mode:
authorKazu Hirata <kazu@google.com>2021-01-10 09:24:53 -0800
committerKazu Hirata <kazu@google.com>2021-01-10 09:24:53 -0800
commit9850d3b10a10aff00d31adf0633a4ba2b840f824 (patch)
treec375eedcdcce00db784ecb2e5272dc186b9b655c /llvm/lib/CodeGen/CodeGenPrepare.cpp
parent1ecae1e62ad016f0c12c204ce312fdfd653ca8cf (diff)
downloadllvm-9850d3b10a10aff00d31adf0633a4ba2b840f824.zip
llvm-9850d3b10a10aff00d31adf0633a4ba2b840f824.tar.gz
llvm-9850d3b10a10aff00d31adf0633a4ba2b840f824.tar.bz2
[CodeGen, DebugInfo] Use llvm::find_if (NFC)
Diffstat (limited to 'llvm/lib/CodeGen/CodeGenPrepare.cpp')
-rw-r--r--llvm/lib/CodeGen/CodeGenPrepare.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/CodeGenPrepare.cpp b/llvm/lib/CodeGen/CodeGenPrepare.cpp
index 85371d0..564a3d7 100644
--- a/llvm/lib/CodeGen/CodeGenPrepare.cpp
+++ b/llvm/lib/CodeGen/CodeGenPrepare.cpp
@@ -633,8 +633,8 @@ void CodeGenPrepare::removeAllAssertingVHReferences(Value *V) {
return;
auto &GEPVector = VecI->second;
- const auto &I = std::find_if(GEPVector.begin(), GEPVector.end(),
- [=](auto &Elt) { return Elt.first == GEP; });
+ const auto &I =
+ llvm::find_if(GEPVector, [=](auto &Elt) { return Elt.first == GEP; });
if (I == GEPVector.end())
return;