diff options
| author | Zalathar <Zalathar@users.noreply.github.com> | 2025-07-27 21:19:07 +1000 |
|---|---|---|
| committer | Zalathar <Zalathar@users.noreply.github.com> | 2025-07-27 21:49:37 +1000 |
| commit | 24e2b4832bfa0bf1b60159af0ae11b15de55590e (patch) | |
| tree | aef289b5f86fcf13aae02aed99ce4d7189d515c2 /compiler/rustc_codegen_llvm/src/back/write.rs | |
| parent | 052114f0c5e8d49f62f8caba364b07017310ab09 (diff) | |
| download | rust-24e2b4832bfa0bf1b60159af0ae11b15de55590e.tar.gz rust-24e2b4832bfa0bf1b60159af0ae11b15de55590e.zip | |
coverage: Infer `instances_used` from `pgo_func_name_var_map`
In obscure circumstances, we would sometimes emit a covfun record for a
function with no physical coverage counters, causing `llvm-cov` to fail with
the cryptic error message:
malformed instrumentation profile data: function name is empty
We can eliminate this mismatch by removing `instances_used` entirely, and
instead inferring its contents from the keys of `pgo_func_name_var_map`.
This makes it impossible for a "used" function to lack a PGO name entry.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/back/write.rs')
0 files changed, 0 insertions, 0 deletions
