mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-03 19:58:18 +00:00
Fix bug in loading host-exposed list pointers
This commit is contained in:
parent
e43ba9bccf
commit
5eda760f1c
1 changed files with 5 additions and 1 deletions
|
@ -3768,8 +3768,12 @@ fn expose_function_to_host_help_c_abi_gen_test<'a, 'ctx, 'env>(
|
|||
} else {
|
||||
match 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",
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue