Do not require allocating Layouts in arena before interning

This should reduce memory spend, the interner has its own effective
arena anyway
This commit is contained in:
Ayaz Hafiz 2023-01-03 15:43:18 -06:00
parent 4652661a5c
commit ce717dca8b
No known key found for this signature in database
GPG key ID: 0E2A37416A25EF58
19 changed files with 161 additions and 171 deletions

View file

@ -45,7 +45,7 @@ pub fn basic_type_from_layout<'a, 'ctx, 'env>(
),
Boxed(inner_layout) => {
let inner_layout = layout_interner.get(*inner_layout);
let inner_type = basic_type_from_layout(env, layout_interner, inner_layout);
let inner_type = basic_type_from_layout(env, layout_interner, &inner_layout);
inner_type.ptr_type(AddressSpace::Generic).into()
}