diff options
| author | beetrees <b@beetr.ee> | 2025-04-06 02:31:52 +0100 |
|---|---|---|
| committer | beetrees <b@beetr.ee> | 2025-04-06 02:31:52 +0100 |
| commit | 3aac9a37a5ff306eccb63872a7d6f4ef6f90a577 (patch) | |
| tree | eb233f0e9ad7a3ac2f594230e66913ed39f4713c /compiler/rustc_codegen_llvm/src | |
| parent | c2110769cd58cd3b0c31f308c8cfeab5e19340fd (diff) | |
| download | rust-3aac9a37a5ff306eccb63872a7d6f4ef6f90a577.tar.gz rust-3aac9a37a5ff306eccb63872a7d6f4ef6f90a577.zip | |
Remove LLVM 18 inline ASM span fallback
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
| -rw-r--r-- | compiler/rustc_codegen_llvm/src/back/write.rs | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/compiler/rustc_codegen_llvm/src/back/write.rs b/compiler/rustc_codegen_llvm/src/back/write.rs index bf6138142b6..76d431a4975 100644 --- a/compiler/rustc_codegen_llvm/src/back/write.rs +++ b/compiler/rustc_codegen_llvm/src/back/write.rs @@ -439,12 +439,9 @@ fn report_inline_asm( let span = if cookie == 0 || matches!(cgcx.lto, Lto::Fat | Lto::Thin) { SpanData::default() } else { - let lo = BytePos::from_u32(cookie as u32); - let hi = BytePos::from_u32((cookie >> 32) as u32); SpanData { - lo, - // LLVM version < 19 silently truncates the cookie to 32 bits in some situations. - hi: if hi.to_u32() != 0 { hi } else { lo }, + lo: BytePos::from_u32(cookie as u32), + hi: BytePos::from_u32((cookie >> 32) as u32), ctxt: SyntaxContext::root(), parent: None, } |
