Skip to content

Commit

Permalink
Fix missing dbg info
Browse files Browse the repository at this point in the history
  • Loading branch information
nbdd0121 committed Feb 14, 2022
1 parent 0804e47 commit 3406db9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions compiler/rustc_codegen_ssa/src/mir/block.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1417,6 +1417,8 @@ impl<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>> FunctionCx<'a, 'tcx, Bx> {
assert!(!base::wants_msvc_seh(self.cx.sess()));

let mut bx = self.new_block("abort");
self.set_debug_loc(&mut bx, mir::SourceInfo::outermost(self.mir.span));

let llpersonality = self.cx.eh_personality();
let llretty = self.landing_pad_type();
bx.cleanup_landing_pad(llretty, llpersonality);
Expand Down

0 comments on commit 3406db9

Please sign in to comment.