about summary refs log tree commit diff
path: root/compiler/rustc_codegen_gcc/src/debuginfo.rs
diff options
context:
space:
mode:
authorThe Miri Cronjob Bot <miri@cron.bot>2024-11-15 05:25:41 +0000
committerThe Miri Cronjob Bot <miri@cron.bot>2024-11-15 05:25:41 +0000
commit26a7772ecd52df928080a55fca225416997c1bae (patch)
tree3c71fa19e95e87043ce87ee7cdf95309afa2a477 /compiler/rustc_codegen_gcc/src/debuginfo.rs
parente459b8a46f82a3e756c11a8e04b9b653f9471472 (diff)
parent29acf8b422ab446fa4cd51fbb0e5a145f30c1cfc (diff)
Merge from rustc
Diffstat (limited to 'compiler/rustc_codegen_gcc/src/debuginfo.rs')
-rw-r--r--compiler/rustc_codegen_gcc/src/debuginfo.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/compiler/rustc_codegen_gcc/src/debuginfo.rs b/compiler/rustc_codegen_gcc/src/debuginfo.rs
index 9d62ccc95d5..5d8c5c199b1 100644
--- a/compiler/rustc_codegen_gcc/src/debuginfo.rs
+++ b/compiler/rustc_codegen_gcc/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::DILocation> {
+        self.location
+    }
 }
 
 /// Generate the `debug_context` in an MIR Body.