Skip to content

Commit 4ad04ad

Browse files
committed
Set debug location to debug operand spill.
1 parent bb758cf commit 4ad04ad

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

compiler/rustc_codegen_ssa/src/mir/debuginfo.rs

+1
Original file line numberDiff line numberDiff line change
@@ -494,6 +494,7 @@ impl<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>> FunctionCx<'a, 'tcx, Bx> {
494494
let Some(dbg_loc) = self.dbg_loc(var.source_info) else { continue };
495495

496496
if let Ok(operand) = self.eval_mir_constant_to_operand(bx, &c) {
497+
self.set_debug_loc(bx, var.source_info);
497498
let base = Self::spill_operand_to_stack(
498499
&operand,
499500
Some(var.name.to_string()),

0 commit comments

Comments
 (0)