diff options
| author | Zalathar <Zalathar@users.noreply.github.com> | 2025-09-19 14:44:54 +1000 |
|---|---|---|
| committer | Zalathar <Zalathar@users.noreply.github.com> | 2025-09-19 14:44:54 +1000 |
| commit | a6d261712ee546fc1fc1b7b7c0ee0782aa827b8b (patch) | |
| tree | c882e9e04b1a56d4eaf068f67e3df8fc63fc0ce3 /compiler/rustc_codegen_llvm/src/debuginfo | |
| parent | b1a9f231fea0459356f751ad6c1704b55f541118 (diff) | |
| download | rust-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.rs | 2 |
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] |
