Skip to content

Commit b992ae4

Browse files
committed
Merge branch 'users/chapuni/cov/single/base' into users/chapuni/cov/single/if
Conflicts: clang/test/CoverageMapping/single-byte-counters.cpp
2 parents 747478e + c0a93e2 commit b992ae4

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

llvm/lib/ProfileData/Coverage/CoverageMapping.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -637,8 +637,7 @@ static unsigned getMaxCounterID(const CounterMappingContext &Ctx,
637637
unsigned MaxCounterID = 0;
638638
for (const auto &Region : Record.MappingRegions) {
639639
MaxCounterID = std::max(MaxCounterID, Ctx.getMaxCounterID(Region.Count));
640-
if (Region.Kind == CounterMappingRegion::BranchRegion ||
641-
Region.Kind == CounterMappingRegion::MCDCBranchRegion)
640+
if (Region.isBranch())
642641
MaxCounterID =
643642
std::max(MaxCounterID, Ctx.getMaxCounterID(Region.FalseCount));
644643
}

0 commit comments

Comments
 (0)