mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 06:14:46 +00:00
Pass function pointer directly rather than load/store into alloca
This commit is contained in:
parent
a123820b2b
commit
6ba6b04a17
2 changed files with 3 additions and 14 deletions
|
@ -1143,9 +1143,7 @@ pub(crate) fn build_exp_expr<'a, 'ctx>(
|
|||
}
|
||||
|
||||
FunctionPointer { lambda_name } => {
|
||||
let function_ptr_type =
|
||||
fn_ptr::pointer_type_expecting_layout(env, layout_interner, layout);
|
||||
let alloca = fn_ptr::build(env, *lambda_name, function_ptr_type);
|
||||
let alloca = fn_ptr::build(env, *lambda_name);
|
||||
alloca.into()
|
||||
}
|
||||
ErasedMake { value, callee } => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue