aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Scalar/JumpThreading.cpp
diff options
context:
space:
mode:
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())