[all-commits] [llvm/llvm-project] 445f9c: [llvm-cov] Fix undercounting lines wrapped by gap ...
Maksim Levental via All-commits
all-commits at lists.llvm.org
Sat Jun 13 21:57:28 PDT 2026
Branch: refs/heads/users/makslevental/coverage-v2
Home: https://github.com/llvm/llvm-project
Commit: 445f9cc8cd0e8fdec994286bfb47d7afcf6d7cc0
https://github.com/llvm/llvm-project/commit/445f9cc8cd0e8fdec994286bfb47d7afcf6d7cc0
Author: makslevental <m_levental at apple.com>
Date: 2026-06-13 (Sat, 13 Jun 2026)
Changed paths:
M llvm/lib/ProfileData/Coverage/CoverageMapping.cpp
Log Message:
-----------
[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 at anthropic.com>
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list