aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Analysis/CodeMetrics.cpp
diff options
context:
space:
mode:
authorDavid Majnemer <david.majnemer@gmail.com>2016-08-11 21:15:00 +0000
committerDavid Majnemer <david.majnemer@gmail.com>2016-08-11 21:15:00 +0000
commit0a16c228463ca58c7828b5fd9bdd10b3ba612bbf (patch)
tree761d8030441a22b5acb0f154ff4586eb6679833f /llvm/lib/Analysis/CodeMetrics.cpp
parent1b689da04e3f8f2c83b1365853a8af39a27b30ea (diff)
downloadllvm-0a16c228463ca58c7828b5fd9bdd10b3ba612bbf.zip
llvm-0a16c228463ca58c7828b5fd9bdd10b3ba612bbf.tar.gz
llvm-0a16c228463ca58c7828b5fd9bdd10b3ba612bbf.tar.bz2
Use range algorithms instead of unpacking begin/end
No functionality change is intended. llvm-svn: 278417
Diffstat (limited to 'llvm/lib/Analysis/CodeMetrics.cpp')
-rw-r--r--llvm/lib/Analysis/CodeMetrics.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/Analysis/CodeMetrics.cpp b/llvm/lib/Analysis/CodeMetrics.cpp
index 576dca4..8e79503 100644
--- a/llvm/lib/Analysis/CodeMetrics.cpp
+++ b/llvm/lib/Analysis/CodeMetrics.cpp
@@ -45,8 +45,7 @@ static void completeEphemeralValues(SmallVector<const Value *, 16> &WorkSet,
continue;
// If all uses of this value are ephemeral, then so is this value.
- if (!std::all_of(V->user_begin(), V->user_end(),
- [&](const User *U) { return EphValues.count(U); }))
+ if (!all_of(V->users(), [&](const User *U) { return EphValues.count(U); }))
continue;
EphValues.insert(V);