diff options
| author | Zalathar <Zalathar@users.noreply.github.com> | 2025-05-10 18:54:45 +1000 |
|---|---|---|
| committer | Zalathar <Zalathar@users.noreply.github.com> | 2025-05-11 14:37:54 +1000 |
| commit | d1bb310a7aa54b4bfc68c6960e1de0976ff447a5 (patch) | |
| tree | b9005c177722ae42c4fc2de64b6a32236d2e7b4e /compiler/rustc_codegen_llvm/src/asm.rs | |
| parent | 8764ecd0c14f9f3f083b84de893ab8e6f71100bc (diff) | |
| download | rust-d1bb310a7aa54b4bfc68c6960e1de0976ff447a5.tar.gz rust-d1bb310a7aa54b4bfc68c6960e1de0976ff447a5.zip | |
Use `LLVMGetInlineAsm`
This LLVM-C binding replaces the existing `LLVMRustInlineAsm` function.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/asm.rs')
| -rw-r--r-- | compiler/rustc_codegen_llvm/src/asm.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/compiler/rustc_codegen_llvm/src/asm.rs b/compiler/rustc_codegen_llvm/src/asm.rs index e481b99afcc..c3851dc7762 100644 --- a/compiler/rustc_codegen_llvm/src/asm.rs +++ b/compiler/rustc_codegen_llvm/src/asm.rs @@ -488,11 +488,11 @@ pub(crate) fn inline_asm_call<'ll>( debug!("constraint verification result: {:?}", constraints_ok); if constraints_ok { let v = unsafe { - llvm::LLVMRustInlineAsm( + llvm::LLVMGetInlineAsm( fty, - asm.as_c_char_ptr(), + asm.as_ptr(), asm.len(), - cons.as_c_char_ptr(), + cons.as_ptr(), cons.len(), volatile, alignstack, |
