diff --git a/src/debuginfo/mod.rs b/src/debuginfo/mod.rs index b6eebbf482c2..967b300c0c5d 100644 --- a/src/debuginfo/mod.rs +++ b/src/debuginfo/mod.rs @@ -257,6 +257,10 @@ impl<'a, 'tcx> FunctionDebugContext<'a, 'tcx> { source_info_set: &indexmap::IndexSet, local_map: FxHashMap>, ) { + if isa.get_mach_backend().is_some() { + return; // The AArch64 backend doesn't support line debuginfo yet. + } + let end = self.create_debug_lines(context, isa, source_info_set); self.debug_context