mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 06:14:46 +00:00
argument_type_from_layout takes layoutrepr
This commit is contained in:
parent
ee25735731
commit
7ab044d79f
5 changed files with 45 additions and 29 deletions
|
@ -5034,7 +5034,8 @@ fn build_proc_header<'a, 'ctx>(
|
|||
let mut arg_basic_types = Vec::with_capacity_in(args.len(), arena);
|
||||
|
||||
for (layout, _) in args.iter() {
|
||||
let arg_type = argument_type_from_layout(env, layout_interner, *layout);
|
||||
let arg_type =
|
||||
argument_type_from_layout(env, layout_interner, layout_interner.get_repr(*layout));
|
||||
|
||||
arg_basic_types.push(arg_type);
|
||||
}
|
||||
|
@ -5966,7 +5967,11 @@ fn build_foreign_symbol<'a, 'ctx>(
|
|||
|
||||
cc_argument_types.push(to_cc_type(env, layout_interner, layout));
|
||||
|
||||
let basic_type = argument_type_from_layout(env, layout_interner, layout);
|
||||
let basic_type = argument_type_from_layout(
|
||||
env,
|
||||
layout_interner,
|
||||
layout_interner.get_repr(layout),
|
||||
);
|
||||
fastcc_argument_types.push(basic_type);
|
||||
|
||||
arguments.push(value);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue