about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/llvm_util.rs
diff options
context:
space:
mode:
authorZalathar <Zalathar@users.noreply.github.com>2023-11-26 22:20:16 +1100
committerZalathar <Zalathar@users.noreply.github.com>2023-12-03 12:35:33 +1100
commiteb2d4cb5414361d9148bf43388012dcbdce80abe (patch)
tree3c378a46905c8253ae97150585341eb733dd6e17 /compiler/rustc_codegen_llvm/src/llvm_util.rs
parent90e321d82a0a9c3d0e3f180d4d17541b729072e0 (diff)
downloadrust-eb2d4cb5414361d9148bf43388012dcbdce80abe.tar.gz
rust-eb2d4cb5414361d9148bf43388012dcbdce80abe.zip
coverage: Skip spans that can't be un-expanded back to the function body
When we extract coverage spans from MIR, we try to "un-expand" them back to
spans that are inside the function's body span.

In cases where that doesn't succeed, the current code just swaps in the entire
body span instead. But that tends to result in coverage spans that are
completely unrelated to the control flow of the affected code, so it's better
to just discard those spans.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/llvm_util.rs')
0 files changed, 0 insertions, 0 deletions