Merge pull request #5365 from roc-lang/dev-backend-cli

Dev backend list tests
This commit is contained in:
Folkert de Vries 2023-05-07 14:47:39 +02:00 committed by GitHub
commit deb1e9952d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
13 changed files with 1035 additions and 351 deletions

View file

@ -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,