Skip to content

Commit 97015cb

Browse files
committed
Decorate the mock
1 parent f2ba219 commit 97015cb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

clang/lib/CodeGen/CoverageMappingGen.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -962,7 +962,8 @@ struct CounterCoverageMappingBuilder
962962

963963
// The old behavior of SingleByte is unaware of Branches.
964964
if (llvm::EnableSingleByteCoverage) {
965-
assert(SkipCntForOld);
965+
assert(SkipCntForOld &&
966+
"SingleByte must provide SkipCntForOld as a fake Skipped count.");
966967
return {ExecCnt, *SkipCntForOld};
967968
}
968969

0 commit comments

Comments
 (0)