Set debug location to debug operand spill.
This commit is contained in:
parent
bb758cfc6d
commit
4ad04ad841
1 changed files with 1 additions and 0 deletions
|
@ -494,6 +494,7 @@ impl<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>> FunctionCx<'a, 'tcx, Bx> {
|
|||
let Some(dbg_loc) = self.dbg_loc(var.source_info) else { continue };
|
||||
|
||||
if let Ok(operand) = self.eval_mir_constant_to_operand(bx, &c) {
|
||||
self.set_debug_loc(bx, var.source_info);
|
||||
let base = Self::spill_operand_to_stack(
|
||||
&operand,
|
||||
Some(var.name.to_string()),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue