mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 06:14:46 +00:00
Pass less arguments around
This commit is contained in:
parent
13d1232f7d
commit
b8c1436a75
3 changed files with 13 additions and 83 deletions
|
@ -68,12 +68,8 @@ pub fn build<'a, 'ctx>(
|
|||
let alloca = env
|
||||
.builder
|
||||
.build_alloca(function_ptr_type, "function_pointer_alloca");
|
||||
let func_value: FunctionValue<'ctx> = function_value_by_func_spec(
|
||||
env,
|
||||
FuncBorrowSpec::Erased,
|
||||
lambda_name.name(),
|
||||
lambda_name.niche(),
|
||||
);
|
||||
let func_value: FunctionValue<'ctx> =
|
||||
function_value_by_func_spec(env, FuncBorrowSpec::Erased, lambda_name.name());
|
||||
env.builder
|
||||
.build_store(alloca, func_value.as_global_value().as_pointer_value());
|
||||
alloca.into()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue