about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/debuginfo
diff options
context:
space:
mode:
authorKyle Huey <khuey@kylehuey.com>2024-08-04 05:26:50 -0700
committerKyle Huey <khuey@kylehuey.com>2024-08-04 05:26:50 -0700
commite5878555387e4ced52b3dd6c5f6a04a5f47eeed7 (patch)
treefa274f2fd28c146edb00addceeea939edeb6e37a /compiler/rustc_codegen_llvm/src/debuginfo
parent78caecf8f30dbdbfcb6e0fda25edc72b3e4d04a5 (diff)
downloadrust-e5878555387e4ced52b3dd6c5f6a04a5f47eeed7.tar.gz
rust-e5878555387e4ced52b3dd6c5f6a04a5f47eeed7.zip
Use Span::is_dummy().
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/debuginfo')
-rw-r--r--compiler/rustc_codegen_llvm/src/debuginfo/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_codegen_llvm/src/debuginfo/mod.rs b/compiler/rustc_codegen_llvm/src/debuginfo/mod.rs
index 3706d31e66e..57b8fb2fe71 100644
--- a/compiler/rustc_codegen_llvm/src/debuginfo/mod.rs
+++ b/compiler/rustc_codegen_llvm/src/debuginfo/mod.rs
@@ -570,7 +570,7 @@ impl<'ll, 'tcx> DebugInfoMethods<'tcx> for CodegenCx<'ll, 'tcx> {
         inlined_at: Option<&'ll DILocation>,
         span: Span,
     ) -> &'ll DILocation {
-        let (line, col) = if span == DUMMY_SP && !self.sess().target.is_like_msvc {
+        let (line, col) = if span.is_dummy() && !self.sess().target.is_like_msvc {
             (0, 0)
         } else {
             let DebugLoc { line, col, .. } = self.lookup_debug_loc(span.lo());