mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-04 12:18:19 +00:00
llvm backend: fix how closure value is passed
This commit is contained in:
parent
83742bc741
commit
1c16617bec
1 changed files with 8 additions and 1 deletions
|
@ -5574,7 +5574,14 @@ pub(crate) fn roc_function_call<'a, 'ctx>(
|
|||
let closure_data_ptr = env
|
||||
.builder
|
||||
.build_alloca(closure_data.get_type(), "closure_data_ptr");
|
||||
env.builder.build_store(closure_data_ptr, closure_data);
|
||||
|
||||
store_roc_value(
|
||||
env,
|
||||
layout_interner,
|
||||
lambda_set.runtime_representation(),
|
||||
closure_data_ptr,
|
||||
closure_data,
|
||||
);
|
||||
|
||||
let stepper_caller = build_transform_caller(
|
||||
env,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue