about summary refs log tree commit diff
path: root/compiler/rustc_codegen_ssa/src/back/archive.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2024-11-09 17:23:28 +0000
committerbors <bors@rust-lang.org>2024-11-09 17:23:28 +0000
commitb026d85107d4c33e7d2571c70115a29a5d2a4cf5 (patch)
tree0d678a013bcd268778f49e00d64eaa9e34b9acd6 /compiler/rustc_codegen_ssa/src/back/archive.rs
parentb73478b6ee1ed915ac3727da02d4675835588538 (diff)
parent1dc106121b62562ead6e7d612fa136dc4b35cd5d (diff)
downloadrust-b026d85107d4c33e7d2571c70115a29a5d2a4cf5.tar.gz
rust-b026d85107d4c33e7d2571c70115a29a5d2a4cf5.zip
Auto merge of #132613 - khuey:master, r=jieyouxu
Add discriminators to DILocations when multiple functions are inlined into a single point.

LLVM does not expect to ever see multiple dbg_declares for the same variable at the same location with different values. proc-macros make it possible for arbitrary code, including multiple calls that get inlined, to happen at any given location in the source code. Add discriminators when that happens so these locations are different to LLVM.

This may interfere with the AddDiscriminators pass in LLVM, which is added by the unstable flag -Zdebug-info-for-profiling.
Diffstat (limited to 'compiler/rustc_codegen_ssa/src/back/archive.rs')
0 files changed, 0 insertions, 0 deletions