3920e07f0b
Operand types are now tracked explicitly, so there is no need to reserve ID 0 for the special always-zero counter. As part of the renumbering, this change fixes an off-by-one error in the way counters were counted by the `coverageinfo` query. As a result, functions should now have exactly the number of counters they actually need, instead of always having an extra counter that is never used.
14 lines
293 B
Diff
14 lines
293 B
Diff
- // MIR for `bar` before InstrumentCoverage
|
|
+ // MIR for `bar` after InstrumentCoverage
|
|
|
|
fn bar() -> bool {
|
|
let mut _0: bool;
|
|
|
|
bb0: {
|
|
+ Coverage::Counter(0) for /the/src/instrument_coverage.rs:20:1 - 22:2;
|
|
_0 = const true;
|
|
return;
|
|
}
|
|
}
|
|
|