Skip to content

Commit 47a12cc

Browse files
committed
CoverageMapping.cpp: s/MaxBitmapID/MaxBitmapIdx/ in getMaxBitmapSize()
1 parent 7d055af commit 47a12cc

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

llvm/lib/ProfileData/Coverage/CoverageMapping.cpp

+5-5
Original file line numberDiff line numberDiff line change
@@ -491,20 +491,20 @@ static unsigned getMaxCounterID(const CounterMappingContext &Ctx,
491491
/// Returns the bit count
492492
static unsigned getMaxBitmapSize(const CounterMappingContext &Ctx,
493493
const CoverageMappingRecord &Record) {
494-
unsigned MaxBitmapID = 0;
494+
unsigned MaxBitmapIdx = 0;
495495
unsigned NumConditions = 0;
496496
// Scan max(BitmapIdx).
497497
// Note that `<=` is used insted of `<`, because `BitmapIdx == 0` is valid
498-
// and `MaxBitmapID is `unsigned`. `BitmapIdx` is unique in the record.
498+
// and `MaxBitmapIdx is `unsigned`. `BitmapIdx` is unique in the record.
499499
for (const auto &Region : reverse(Record.MappingRegions)) {
500500
if (Region.Kind == CounterMappingRegion::MCDCDecisionRegion &&
501-
MaxBitmapID <= Region.MCDCParams.BitmapIdx) {
502-
MaxBitmapID = Region.MCDCParams.BitmapIdx;
501+
MaxBitmapIdx <= Region.MCDCParams.BitmapIdx) {
502+
MaxBitmapIdx = Region.MCDCParams.BitmapIdx;
503503
NumConditions = Region.MCDCParams.NumConditions;
504504
}
505505
}
506506
unsigned SizeInBits = llvm::alignTo(uint64_t(1) << NumConditions, CHAR_BIT);
507-
return MaxBitmapID * CHAR_BIT + SizeInBits;
507+
return MaxBitmapIdx * CHAR_BIT + SizeInBits;
508508
}
509509

510510
namespace {

0 commit comments

Comments
 (0)