diff options
| author | Zalathar <Zalathar@users.noreply.github.com> | 2023-06-29 12:36:19 +1000 |
|---|---|---|
| committer | Zalathar <Zalathar@users.noreply.github.com> | 2023-08-01 11:29:55 +1000 |
| commit | 3920e07f0bd97d9815a037eaeea197266424cd56 (patch) | |
| tree | 097f5c579cbd053041efc198705d45467fde8c2b /compiler/rustc_codegen_llvm/src/builder.rs | |
| parent | f103db894fdcf94822d57cf28e30bc498c042631 (diff) | |
| download | rust-3920e07f0bd97d9815a037eaeea197266424cd56.tar.gz rust-3920e07f0bd97d9815a037eaeea197266424cd56.zip | |
Make coverage counter IDs count up from 0, not 1
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.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/builder.rs')
0 files changed, 0 insertions, 0 deletions
