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-19 14:44:54 +1000
committerZalathar <Zalathar@users.noreply.github.com>2025-09-19 14:44:54 +1000
commita6d261712ee546fc1fc1b7b7c0ee0782aa827b8b (patch)
treec882e9e04b1a56d4eaf068f67e3df8fc63fc0ce3 /compiler/rustc_codegen_llvm/src/debuginfo
parentb1a9f231fea0459356f751ad6c1704b55f541118 (diff)
downloadrust-a6d261712ee546fc1fc1b7b7c0ee0782aa827b8b.tar.gz
rust-a6d261712ee546fc1fc1b7b7c0ee0782aa827b8b.zip
Use `LLVMDIBuilderGetOrCreateArray`
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/debuginfo')
-rw-r--r--compiler/rustc_codegen_llvm/src/debuginfo/utils.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_codegen_llvm/src/debuginfo/utils.rs b/compiler/rustc_codegen_llvm/src/debuginfo/utils.rs
index cc1d504b430..7e1e49310f6 100644
--- a/compiler/rustc_codegen_llvm/src/debuginfo/utils.rs
+++ b/compiler/rustc_codegen_llvm/src/debuginfo/utils.rs
@@ -28,7 +28,7 @@ pub(crate) fn create_DIArray<'ll>(
     builder: &DIBuilder<'ll>,
     arr: &[Option<&'ll DIDescriptor>],
 ) -> &'ll DIArray {
-    unsafe { llvm::LLVMRustDIBuilderGetOrCreateArray(builder, arr.as_ptr(), arr.len() as u32) }
+    unsafe { llvm::LLVMDIBuilderGetOrCreateArray(builder, arr.as_ptr(), arr.len()) }
 }
 
 #[inline]