Commit ffcaea9
committed
Block coverage reporting: do not use built-in locations
source_linest::insert will disregard any source locations that refer to
built-ins. cover_basic_blockst, however, only checked that any source
location used as basic-block representative had file and line
information. This resulted in cover_basic_blockst believing it had found
a representative source location when source_linest didn't quite agree.
This change makes the example presented in #6536 (which originates from
Rust/Kani) work. The issue wasn't reproducible with C examples.
Fixes: #65361 parent b345e2a commit ffcaea9
1 file changed
+1
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
| 68 | + | |
68 | 69 | | |
69 | 70 | | |
70 | 71 | | |
| |||
0 commit comments