mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-29 14:54:47 +00:00
fix list decref
This commit is contained in:
parent
5e68d31afc
commit
cd9b32ba65
4 changed files with 27 additions and 22 deletions
|
@ -230,7 +230,7 @@ impl<'ctx> PointerToRefcount<'ctx> {
|
|||
}
|
||||
}
|
||||
|
||||
pub fn decref_pointer<'a, 'ctx, 'env>(
|
||||
fn decref_pointer<'a, 'ctx, 'env>(
|
||||
env: &Env<'a, 'ctx, 'env>,
|
||||
pointer: PointerValue<'ctx>,
|
||||
alignment: u32,
|
||||
|
@ -262,8 +262,8 @@ pub fn decref_pointer_check_null<'a, 'ctx, 'env>(
|
|||
&[
|
||||
env.builder.build_bitcast(
|
||||
pointer,
|
||||
env.ptr_int().ptr_type(AddressSpace::Generic),
|
||||
"to_isize_ptr",
|
||||
env.context.i8_type().ptr_type(AddressSpace::Generic),
|
||||
"to_i8_ptr",
|
||||
),
|
||||
alignment.into(),
|
||||
],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue