about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/llvm_util.rs
diff options
context:
space:
mode:
authorDylan DPC <99973273+Dylan-DPC@users.noreply.github.com>2022-07-22 11:53:40 +0530
committerGitHub <noreply@github.com>2022-07-22 11:53:40 +0530
commit6e3dd69e36d42318f1c930de57858109bfc1730c (patch)
treec881dc63e1b365cc1e0851a7150165599a9f4edf /compiler/rustc_codegen_llvm/src/llvm_util.rs
parentad31d5c6a5551c88e98dd35c70a7af18445dadd8 (diff)
parent947314125370164f52feb221ef2f1aac0e420309 (diff)
downloadrust-6e3dd69e36d42318f1c930de57858109bfc1730c.tar.gz
rust-6e3dd69e36d42318f1c930de57858109bfc1730c.zip
Rollup merge of #98868 - tmiasko:unreachable-coverage, r=wesleywiser
Fix unreachable coverage generation for inlined functions

To generate a function coverage we need at least one coverage counter,
so a coverage from unreachable blocks is retained only when some live
counters remain.

The previous implementation incorrectly retained unreachable coverage,
because it didn't account for the fact that those live counters can
belong to another function due to inlining.

Fixes #98833.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/llvm_util.rs')
0 files changed, 0 insertions, 0 deletions