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.