mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 22:09:09 +00:00
clarify basic_type_from_layout function
This commit is contained in:
parent
5d15166bb5
commit
29e053abf3
5 changed files with 77 additions and 113 deletions
|
@ -24,7 +24,7 @@ use crate::llvm::build_str::{
|
|||
};
|
||||
use crate::llvm::compare::{generic_eq, generic_neq};
|
||||
use crate::llvm::convert::{
|
||||
self, basic_type_from_builtin, basic_type_from_layout, basic_type_from_layout_tag_as_alloca,
|
||||
self, argument_type_from_layout, basic_type_from_builtin, basic_type_from_layout,
|
||||
block_of_memory_slices,
|
||||
};
|
||||
use crate::llvm::refcounting::{
|
||||
|
@ -4225,7 +4225,7 @@ fn build_proc_header<'a, 'ctx, 'env>(
|
|||
let mut arg_basic_types = Vec::with_capacity_in(args.len(), arena);
|
||||
|
||||
for (layout, _) in args.iter() {
|
||||
let arg_type = basic_type_from_layout_tag_as_alloca(env, layout);
|
||||
let arg_type = argument_type_from_layout(env, layout);
|
||||
|
||||
arg_basic_types.push(arg_type);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue