We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents f4177f4 + 3aac9a3 commit 5012354Copy full SHA for 5012354
compiler/rustc_codegen_llvm/src/back/write.rs
@@ -439,12 +439,9 @@ fn report_inline_asm(
439
let span = if cookie == 0 || matches!(cgcx.lto, Lto::Fat | Lto::Thin) {
440
SpanData::default()
441
} else {
442
- let lo = BytePos::from_u32(cookie as u32);
443
- let hi = BytePos::from_u32((cookie >> 32) as u32);
444
SpanData {
445
- lo,
446
- // LLVM version < 19 silently truncates the cookie to 32 bits in some situations.
447
- hi: if hi.to_u32() != 0 { hi } else { lo },
+ lo: BytePos::from_u32(cookie as u32),
+ hi: BytePos::from_u32((cookie >> 32) as u32),
448
ctxt: SyntaxContext::root(),
449
parent: None,
450
}
0 commit comments