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/ProfileData/InstrProfWriter.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'llvm/lib/ProfileData') diff --git a/llvm/lib/ProfileData/InstrProfWriter.cpp b/llvm/lib/ProfileData/InstrProfWriter.cpp index cb839f92636..029d75660a7 100644 --- a/llvm/lib/ProfileData/InstrProfWriter.cpp +++ b/llvm/lib/ProfileData/InstrProfWriter.cpp @@ -208,8 +208,7 @@ bool InstrProfWriter::shouldEncodeData(const ProfilingData &PD) { return true; for (const auto &Func : PD) { const InstrProfRecord &IPR = Func.second; - if (std::any_of(IPR.Counts.begin(), IPR.Counts.end(), - [](uint64_t Count) { return Count > 0; })) + if (any_of(IPR.Counts, [](uint64_t Count) { return Count > 0; })) return true; } return false; -- cgit v1.2.3