From 0a16c228463ca58c7828b5fd9bdd10b3ba612bbf Mon Sep 17 00:00:00 2001 From: David Majnemer Date: Thu, 11 Aug 2016 21:15:00 +0000 Subject: Use range algorithms instead of unpacking begin/end No functionality change is intended. llvm-svn: 278417 --- llvm/lib/Analysis/CodeMetrics.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'llvm/lib/Analysis/CodeMetrics.cpp') diff --git a/llvm/lib/Analysis/CodeMetrics.cpp b/llvm/lib/Analysis/CodeMetrics.cpp index 576dca4b42c..8e795030aaf 100644 --- a/llvm/lib/Analysis/CodeMetrics.cpp +++ b/llvm/lib/Analysis/CodeMetrics.cpp @@ -45,8 +45,7 @@ static void completeEphemeralValues(SmallVector &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); -- cgit v1.2.3