diff options
| author | Oli Scherer <github333195615777966@oli-obk.de> | 2025-02-24 14:33:55 +0000 |
|---|---|---|
| committer | Oli Scherer <github333195615777966@oli-obk.de> | 2025-02-24 15:11:29 +0000 |
| commit | f16f64b15a51789984d9014e92e86fb3a2fe8ce0 (patch) | |
| tree | 53cf9997b169497bbf3e9e4baa8f50fed8fe0166 /compiler/rustc_codegen_llvm/src/asm.rs | |
| parent | 241c83f0c7877815b592a276bb13af57fbb8d7fc (diff) | |
| download | rust-f16f64b15a51789984d9014e92e86fb3a2fe8ce0.tar.gz rust-f16f64b15a51789984d9014e92e86fb3a2fe8ce0.zip | |
Remove inherent function that has a trait method duplicate of a commonly imported trait
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/asm.rs')
| -rw-r--r-- | compiler/rustc_codegen_llvm/src/asm.rs | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/compiler/rustc_codegen_llvm/src/asm.rs b/compiler/rustc_codegen_llvm/src/asm.rs index be5673eddf9..5fc99ced993 100644 --- a/compiler/rustc_codegen_llvm/src/asm.rs +++ b/compiler/rustc_codegen_llvm/src/asm.rs @@ -1,6 +1,5 @@ use std::assert_matches::assert_matches; -use libc::{c_char, c_uint}; use rustc_abi::{BackendRepr, Float, Integer, Primitive, Scalar}; use rustc_ast::{InlineAsmOptions, InlineAsmTemplatePiece}; use rustc_codegen_ssa::mir::operand::OperandValue; @@ -512,11 +511,7 @@ pub(crate) fn inline_asm_call<'ll>( // Store mark in a metadata node so we can map LLVM errors // back to source locations. See #17552. let key = "srcloc"; - let kind = llvm::LLVMGetMDKindIDInContext( - bx.llcx, - key.as_ptr().cast::<c_char>(), - key.len() as c_uint, - ); + let kind = bx.get_md_kind_id(key); // `srcloc` contains one 64-bit integer for each line of assembly code, // where the lower 32 bits hold the lo byte position and the upper 32 bits |
