aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Scalar/JumpThreading.cpp
diff options
context:
space:
mode:
authorKazu Hirata <kazu@google.com>2023-10-12 22:59:25 -0700
committerKazu Hirata <kazu@google.com>2023-10-12 22:59:25 -0700
commit9bcc094d376705e3dcfdd6fe2c71bb5456746b08 (patch)
tree887fa7dea566501697e302a843e257bab5fc96e8 /llvm/lib/Transforms/Scalar/JumpThreading.cpp
parent60b3e05967ff5f6cbb7b9dea32395ed0799f3bdd (diff)
downloadllvm-9bcc094d376705e3dcfdd6fe2c71bb5456746b08.zip
llvm-9bcc094d376705e3dcfdd6fe2c71bb5456746b08.tar.gz
llvm-9bcc094d376705e3dcfdd6fe2c71bb5456746b08.tar.bz2
[llvm] Use llvm::erase_if (NFC)
Diffstat (limited to 'llvm/lib/Transforms/Scalar/JumpThreading.cpp')
-rw-r--r--llvm/lib/Transforms/Scalar/JumpThreading.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/llvm/lib/Transforms/Scalar/JumpThreading.cpp b/llvm/lib/Transforms/Scalar/JumpThreading.cpp
index 8c3ff39..f2b9d78 100644
--- a/llvm/lib/Transforms/Scalar/JumpThreading.cpp
+++ b/llvm/lib/Transforms/Scalar/JumpThreading.cpp
@@ -1977,11 +1977,9 @@ void JumpThreadingPass::updateSSA(
// Find debug values outside of the block
findDbgValues(DbgValues, &I);
- DbgValues.erase(remove_if(DbgValues,
- [&](const DbgValueInst *DbgVal) {
- return DbgVal->getParent() == BB;
- }),
- DbgValues.end());
+ llvm::erase_if(DbgValues, [&](const DbgValueInst *DbgVal) {
+ return DbgVal->getParent() == BB;
+ });
// If there are no uses outside the block, we're done with this instruction.
if (UsesToRename.empty() && DbgValues.empty())