fix warnings from deprecated llvm ptr type

This commit is contained in:
Luke Boswell 2024-08-04 12:52:44 +10:00
parent 8090e99e75
commit 1519e5f833
No known key found for this signature in database
GPG key ID: F6DB3C9DB47377B0
11 changed files with 109 additions and 218 deletions

View file

@ -75,8 +75,7 @@ pub(crate) fn add_intrinsics<'ctx>(ctx: &'ctx Context, module: &Module<'ctx>) {
//
// https://releases.llvm.org/10.0.0/docs/LangRef.html#standard-c-library-intrinsics
let i1_type = ctx.bool_type();
let i8_type = ctx.i8_type();
let i8_ptr_type = i8_type.ptr_type(AddressSpace::default());
let i8_ptr_type = ctx.ptr_type(AddressSpace::default());
let i32_type = ctx.i32_type();
let void_type = ctx.void_type();