llvm-project
025639bc - [Coverage] Fix mapping for do-while loops with terminating statements (#139777)

Commit
210 days ago
[Coverage] Fix mapping for do-while loops with terminating statements (#139777) The current region mapping for do-while loops that contain statements such as break or continue results in inaccurate line coverage reports for the line following the loop. This change handles terminating statements the same way that other loop constructs do, correcting the region mapping for accurate reports. It also fixes a fragile test relying on exact line numbers. Fixes #139122
Author
Parents
Loading