diff --git a/compiler/gen_llvm/src/llvm/compare.rs b/compiler/gen_llvm/src/llvm/compare.rs index 6ea0d2e308..b2aa80b626 100644 --- a/compiler/gen_llvm/src/llvm/compare.rs +++ b/compiler/gen_llvm/src/llvm/compare.rs @@ -1301,7 +1301,7 @@ fn build_box_eq<'a, 'ctx, 'env>( let function = match env.module.get_function(fn_name.as_str()) { Some(function_value) => function_value, None => { - let arg_type = basic_type_from_layout_1(env, box_layout); + let arg_type = basic_type_from_layout(env, box_layout); let function_value = crate::llvm::refcounting::build_header_help( env, diff --git a/compiler/gen_llvm/src/llvm/convert.rs b/compiler/gen_llvm/src/llvm/convert.rs index 17401a4e60..3b37bfa000 100644 --- a/compiler/gen_llvm/src/llvm/convert.rs +++ b/compiler/gen_llvm/src/llvm/convert.rs @@ -35,7 +35,7 @@ pub fn basic_type_from_layout<'a, 'ctx, 'env>( } => basic_type_from_record(env, sorted_fields), LambdaSet(lambda_set) => basic_type_from_layout(env, &lambda_set.runtime_representation()), Boxed(inner_layout) => { - let inner_type = basic_type_from_layout_1(env, inner_layout); + let inner_type = basic_type_from_layout(env, inner_layout); inner_type.ptr_type(AddressSpace::Generic).into() }