Merge pull request #4882 from roc-lang/weakening-3

Begin weakening let-bindings to non-function, non-number expressions
This commit is contained in:
Folkert de Vries 2023-01-14 15:32:27 +01:00 committed by GitHub
commit e3a213c0dc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 129 additions and 60 deletions

View file

@ -3777,8 +3777,12 @@ fn expose_function_to_host_help_c_abi_gen_test<'a, 'ctx, 'env>(
} else {
match layout_interner.get(*layout) {
Layout::Builtin(Builtin::List(_)) => {
let list_type = arg_type
.into_pointer_type()
.get_element_type()
.into_struct_type();
let loaded = env.builder.new_build_load(
arg_type,
list_type,
arg.into_pointer_value(),
"load_list_pointer",
);