mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-03 11:52:19 +00:00
fix alloca of wrong type
This commit is contained in:
parent
1c16617bec
commit
ef60be37af
1 changed files with 4 additions and 1 deletions
|
@ -5571,9 +5571,12 @@ 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");
|
||||
.build_alloca(closure_data_type, "closure_data_ptr");
|
||||
|
||||
store_roc_value(
|
||||
env,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue