Remove LLVM 18 inline ASM span fallback
This commit is contained in:
parent
c2110769cd
commit
3aac9a37a5
1 changed files with 2 additions and 5 deletions
|
@ -439,12 +439,9 @@ fn report_inline_asm(
|
||||||
let span = if cookie == 0 || matches!(cgcx.lto, Lto::Fat | Lto::Thin) {
|
let span = if cookie == 0 || matches!(cgcx.lto, Lto::Fat | Lto::Thin) {
|
||||||
SpanData::default()
|
SpanData::default()
|
||||||
} else {
|
} else {
|
||||||
let lo = BytePos::from_u32(cookie as u32);
|
|
||||||
let hi = BytePos::from_u32((cookie >> 32) as u32);
|
|
||||||
SpanData {
|
SpanData {
|
||||||
lo,
|
lo: BytePos::from_u32(cookie as u32),
|
||||||
// LLVM version < 19 silently truncates the cookie to 32 bits in some situations.
|
hi: BytePos::from_u32((cookie >> 32) as u32),
|
||||||
hi: if hi.to_u32() != 0 { hi } else { lo },
|
|
||||||
ctxt: SyntaxContext::root(),
|
ctxt: SyntaxContext::root(),
|
||||||
parent: None,
|
parent: None,
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue