Use Span::is_dummy().
This commit is contained in:
parent
78caecf8f3
commit
e587855538
1 changed files with 1 additions and 1 deletions
|
@ -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());
|
||||
|
|
Loading…
Add table
Reference in a new issue