From bed136fb2d1ffec35cf2f3aba326be48a8920325 Mon Sep 17 00:00:00 2001 From: Bastian Kersting Date: Fri, 8 Nov 2024 08:51:19 +0000 Subject: [PATCH] CFI: Append debug location to CFI blocks --- src/debuginfo.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/debuginfo.rs b/src/debuginfo.rs index 9d62ccc95d56..5d8c5c199b12 100644 --- a/src/debuginfo.rs +++ b/src/debuginfo.rs @@ -52,6 +52,10 @@ impl<'a, 'gcc, 'tcx> DebugInfoBuilderMethods for Builder<'a, 'gcc, 'tcx> { fn clear_dbg_loc(&mut self) { self.location = None; } + + fn get_dbg_loc(&self) -> Option { + self.location + } } /// Generate the `debug_context` in an MIR Body.