about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/debuginfo
diff options
context:
space:
mode:
authorZalathar <Zalathar@users.noreply.github.com>2025-09-17 21:06:38 +1000
committerZalathar <Zalathar@users.noreply.github.com>2025-09-17 22:32:21 +1000
commit923d1be6b6caec99a5eb46b3fb236f45f9e18233 (patch)
treebd3b7261299f28eaa5b9a5f1da91ead327b32782 /compiler/rustc_codegen_llvm/src/debuginfo
parent2ebb1263e3506412889410b567fa813ca3cb5c63 (diff)
downloadrust-923d1be6b6caec99a5eb46b3fb236f45f9e18233.tar.gz
rust-923d1be6b6caec99a5eb46b3fb236f45f9e18233.zip
Use `LLVMDIBuilderCreateMemberType`
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/debuginfo')
-rw-r--r--compiler/rustc_codegen_llvm/src/debuginfo/metadata.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_codegen_llvm/src/debuginfo/metadata.rs b/compiler/rustc_codegen_llvm/src/debuginfo/metadata.rs
index 0903ddab285..f2000311ae4 100644
--- a/compiler/rustc_codegen_llvm/src/debuginfo/metadata.rs
+++ b/compiler/rustc_codegen_llvm/src/debuginfo/metadata.rs
@@ -1034,10 +1034,10 @@ fn create_member_type<'ll, 'tcx>(
     type_di_node: &'ll DIType,
 ) -> &'ll DIType {
     unsafe {
-        llvm::LLVMRustDIBuilderCreateMemberType(
+        llvm::LLVMDIBuilderCreateMemberType(
             DIB(cx),
             owner,
-            name.as_c_char_ptr(),
+            name.as_ptr(),
             name.len(),
             file_metadata,
             line_number,