Use LLVMDIBuilderCreateBasicType

This commit is contained in:
Zalathar
2025-09-16 18:46:45 +10:00
parent bef8f646a6
commit 3e9048d9a4
3 changed files with 12 additions and 18 deletions

View File

@@ -840,12 +840,13 @@ fn create_basic_type<'ll, 'tcx>(
encoding: u32,
) -> &'ll DIBasicType {
unsafe {
llvm::LLVMRustDIBuilderCreateBasicType(
llvm::LLVMDIBuilderCreateBasicType(
DIB(cx),
name.as_c_char_ptr(),
name.as_ptr(),
name.len(),
size.bits(),
encoding,
DIFlags::FlagZero,
)
}
}