about summary refs log tree commit diff
path: root/compiler/rustc_codegen_gcc
diff options
context:
space:
mode:
authorThe Miri Cronjob Bot <miri@cron.bot>2024-09-14 05:06:03 +0000
committerThe Miri Cronjob Bot <miri@cron.bot>2024-09-14 05:06:03 +0000
commit94d49917ad3a88efffa3ad0e2d2dd95e1f866997 (patch)
tree3eb940125a277d2f3b0e6eaf9a84c1efed1cbf63 /compiler/rustc_codegen_gcc
parent9bab91f5d40b454230ce5c69b95bfa5bd633a1af (diff)
parent42a44a04ee1b2a99ea78e942937b4ce3d8a3067e (diff)
downloadrust-94d49917ad3a88efffa3ad0e2d2dd95e1f866997.tar.gz
rust-94d49917ad3a88efffa3ad0e2d2dd95e1f866997.zip
Merge from rustc
Diffstat (limited to 'compiler/rustc_codegen_gcc')
-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 d770da5a8c4..f2ae9f9c8a6 100644
--- a/compiler/rustc_codegen_gcc/src/debuginfo.rs
+++ b/compiler/rustc_codegen_gcc/src/debuginfo.rs
@@ -48,6 +48,10 @@ impl<'a, 'gcc, 'tcx> DebugInfoBuilderMethods for Builder<'a, 'gcc, 'tcx> {
     fn set_dbg_loc(&mut self, dbg_loc: Self::DILocation) {
         self.location = Some(dbg_loc);
     }
+
+    fn clear_dbg_loc(&mut self) {
+        self.location = None;
+    }
 }
 
 /// Generate the `debug_context` in an MIR Body.