about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/back/write.rs
diff options
context:
space:
mode:
authorThe rustc-dev-guide Cronjob Bot <github-actions@github.com>2025-05-15 09:46:22 +0000
committerThe rustc-dev-guide Cronjob Bot <github-actions@github.com>2025-05-15 09:46:22 +0000
commit1fd536c5fb7616f08973dd33074efb94e82eea44 (patch)
tree7b32415cdda158f9c51d195f0f03921c86d8892a /compiler/rustc_codegen_llvm/src/back/write.rs
parent4adff2f244140be9ac78c0bd6774bf5acb828029 (diff)
parent414482f6a0d4e7290f614300581a0b55442552a3 (diff)
downloadrust-1fd536c5fb7616f08973dd33074efb94e82eea44.tar.gz
rust-1fd536c5fb7616f08973dd33074efb94e82eea44.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);
         }
     }
 }