[clang] [compiler-rt] [llvm] [InstrProf] Single byte counters in coverage (PR #75425)
via cfe-commits
cfe-commits at lists.llvm.org
Wed Feb 7 19:54:46 PST 2024
================
@@ -569,16 +577,26 @@ struct CounterCoverageMappingBuilder
/// Return a counter for the subtraction of \c RHS from \c LHS
Counter subtractCounters(Counter LHS, Counter RHS, bool Simplify = true) {
+ if (llvm::EnableSingleByteCoverage)
+ assert(
+ 0 &&
+ "cannot subtract counters when single byte coverage mode is enabled");
----------------
gulfemsavrun wrote:
Thanks for the suggestion. Done!
https://github.com/llvm/llvm-project/pull/75425
More information about the cfe-commits
mailing list