Skip to content

Commit e587855

Browse files
committed
Use Span::is_dummy().
1 parent 78caecf commit e587855

File tree

1 file changed

+1
-1
lines changed
  • compiler/rustc_codegen_llvm/src/debuginfo

1 file changed

+1
-1
lines changed

compiler/rustc_codegen_llvm/src/debuginfo/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -570,7 +570,7 @@ impl<'ll, 'tcx> DebugInfoMethods<'tcx> for CodegenCx<'ll, 'tcx> {
570570
inlined_at: Option<&'ll DILocation>,
571571
span: Span,
572572
) -> &'ll DILocation {
573-
let (line, col) = if span == DUMMY_SP && !self.sess().target.is_like_msvc {
573+
let (line, col) = if span.is_dummy() && !self.sess().target.is_like_msvc {
574574
(0, 0)
575575
} else {
576576
let DebugLoc { line, col, .. } = self.lookup_debug_loc(span.lo());

0 commit comments

Comments
 (0)