This commit is contained in:
Folkert 2023-06-18 17:00:31 +02:00
parent 0247237fe8
commit 9c85fb90d3
No known key found for this signature in database
GPG key ID: 1F17F6FFD112B97C
44 changed files with 2585 additions and 2505 deletions

View file

@ -30,7 +30,8 @@ pub fn basic_type_from_layout<'a, 'ctx, 'env>(
layout_interner,
layout_interner.get_repr(lambda_set.runtime_representation()),
),
Boxed(inner_layout) => {
Ptr(inner_layout) | Boxed(inner_layout) => {
let inner_type = basic_type_from_layout(
env,
layout_interner,
@ -41,12 +42,6 @@ pub fn basic_type_from_layout<'a, 'ctx, 'env>(
}
Union(union_layout) => basic_type_from_union_layout(env, layout_interner, &union_layout),
Ptr(_) => env
.context
.i64_type()
.ptr_type(AddressSpace::default())
.as_basic_type_enum(),
RecursivePointer(_) => env
.context
.i64_type()