mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 22:09:09 +00:00
Merge pull request #5365 from roc-lang/dev-backend-cli
Dev backend list tests
This commit is contained in:
commit
deb1e9952d
13 changed files with 1035 additions and 351 deletions
|
@ -5571,10 +5571,20 @@ pub(crate) fn roc_function_call<'a, 'ctx>(
|
|||
) -> RocFunctionCall<'ctx> {
|
||||
use crate::llvm::bitcode::{build_inc_n_wrapper, build_transform_caller};
|
||||
|
||||
let closure_data_type =
|
||||
basic_type_from_layout(env, layout_interner, lambda_set.runtime_representation());
|
||||
|
||||
let closure_data_ptr = env
|
||||
.builder
|
||||
.build_alloca(closure_data.get_type(), "closure_data_ptr");
|
||||
env.builder.build_store(closure_data_ptr, closure_data);
|
||||
.build_alloca(closure_data_type, "closure_data_ptr");
|
||||
|
||||
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