[all-commits] [llvm/llvm-project] a94957: [llvm-cov] Add failing test for gap region line co...
Maksim Levental via All-commits
all-commits at lists.llvm.org
Sat Jun 13 19:48:49 PDT 2026
Branch: refs/heads/users/makslevental/coverage-v2
Home: https://github.com/llvm/llvm-project
Commit: a94957f98d48cc919dbb925f94c536bfdbd7cf42
https://github.com/llvm/llvm-project/commit/a94957f98d48cc919dbb925f94c536bfdbd7cf42
Author: makslevental <maksim.levental at gmail.com>
Date: 2026-06-13 (Sat, 13 Jun 2026)
Changed paths:
A llvm/test/tools/llvm-cov/Inputs/gap-region-quirk/gap-quirk-v2.cpp
A llvm/test/tools/llvm-cov/Inputs/gap-region-quirk/gap-quirk.covmapping
A llvm/test/tools/llvm-cov/Inputs/gap-region-quirk/gap-quirk.profdata
A llvm/test/tools/llvm-cov/gap-region-line-coverage.test
Log Message:
-----------
[llvm-cov] Add failing test for gap region line coverage bug
LineCoverageStats incorrectly reports lines as uncovered when a gap
region with count=0 wraps into a line that has non-entry segments
with count > 0.
The test uses a minimal reproducer: a scoped block with a never-taken
early return followed by a statement. The closing "}" produces a gap
region that wraps to the next line, suppressing its execution count.
The extra statement after the if-block is required — without it,
clang emits a region entry (MinRegionCount > 0) and the bug doesn't
trigger.
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