about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/back/write.rs
diff options
context:
space:
mode:
authorRalf Jung <post@ralfj.de>2025-05-17 09:53:02 +0200
committerRalf Jung <post@ralfj.de>2025-05-17 09:53:02 +0200
commit8f2da9b487f47827d565c52e019db5a464f31808 (patch)
tree301e9048498969ddd68998a0b787e50108b9f881 /compiler/rustc_codegen_llvm/src/back/write.rs
parent3a9ee90deda02db57e34c1434960008678d9923d (diff)
parenta69bc17fb8026bdc0d24bb1896ff95f0eba1da4e (diff)
downloadrust-8f2da9b487f47827d565c52e019db5a464f31808.tar.gz
rust-8f2da9b487f47827d565c52e019db5a464f31808.zip
Merge from rustc
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/back/write.rs')
-rw-r--r--compiler/rustc_codegen_llvm/src/back/write.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_codegen_llvm/src/back/write.rs b/compiler/rustc_codegen_llvm/src/back/write.rs
index 4ac77c8f7f1..20721c74608 100644
--- a/compiler/rustc_codegen_llvm/src/back/write.rs
+++ b/compiler/rustc_codegen_llvm/src/back/write.rs
@@ -1148,9 +1148,9 @@ unsafe fn embed_bitcode(
             // We need custom section flags, so emit module-level inline assembly.
             let section_flags = if cgcx.is_pe_coff { "n" } else { "e" };
             let asm = create_section_with_flags_asm(".llvmbc", section_flags, bitcode);
-            llvm::LLVMAppendModuleInlineAsm(llmod, asm.as_c_char_ptr(), asm.len());
+            llvm::append_module_inline_asm(llmod, &asm);
             let asm = create_section_with_flags_asm(".llvmcmd", section_flags, cmdline.as_bytes());
-            llvm::LLVMAppendModuleInlineAsm(llmod, asm.as_c_char_ptr(), asm.len());
+            llvm::append_module_inline_asm(llmod, &asm);
         }
     }
 }