We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c7b34b0 commit a277d24Copy full SHA for a277d24
llvm/include/llvm/ProfileData/Coverage/CoverageMapping.h
@@ -499,9 +499,7 @@ struct MCDCRecord {
499
/// vectors.
500
std::pair<unsigned, unsigned> getDecisions() const {
501
const unsigned TrueDecisions =
502
- std::count_if(TV.begin(), TV.end(), [](const auto &TestVec) {
503
- return TestVec.second == CondState::MCDC_True;
504
- });
+ llvm::count(llvm::make_second_range(TV), CondState::MCDC_True);
505
506
return {TrueDecisions, TV.size() - TrueDecisions};
507
}
0 commit comments