diff --git a/clang/unittests/StaticAnalyzer/CallDescriptionTest.cpp b/clang/unittests/StaticAnalyzer/CallDescriptionTest.cpp index 434c1d1526a22..4cb6bd34fa36d 100644 --- a/clang/unittests/StaticAnalyzer/CallDescriptionTest.cpp +++ b/clang/unittests/StaticAnalyzer/CallDescriptionTest.cpp @@ -35,11 +35,7 @@ class ResultMap { public: ResultMap(std::initializer_list> Data) - : Found(0), - Total(std::count_if(Data.begin(), Data.end(), - [](const std::pair &Pair) { - return Pair.second == true; - })), + : Found(0), Total(llvm::count(llvm::make_second_range(Data), true)), Impl(std::move(Data)) {} const bool *lookup(const CallEvent &Call) {