llvm-project
20456954 - [llvm-cov] Fix undercounting lines wrapped by gap regions

Commit
81 days ago
[llvm-cov] Fix undercounting lines wrapped by gap regions Lines with no region entry that are wrapped by a gap region were reported with the gap's count (often 0), even when non-gap segments on the line indicated the line was actually executed. This caused llvm-cov to undercount coverage for lines that continue a covered region after a gap (e.g., closing braces, simple statements following an if/else). Check for non-gap segments with HasCount on such lines and use their max count instead of the gap region's count. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Author
Committer
makslevental
Parents
Loading