store the layout of a function passed to a lowlevel

This commit is contained in:
Folkert 2021-05-15 20:54:26 +02:00
parent 27a6a179da
commit 357f93a2ee
6 changed files with 72 additions and 33 deletions

View file

@ -882,9 +882,10 @@ pub fn build_exp_call<'a, 'ctx, 'env>(
.unwrap_or_else(|| panic!("LLVM error: Invalid call by pointer."))
}
CallType::LowLevel { op } => {
run_low_level(env, layout_ids, scope, parent, layout, *op, arguments)
}
CallType::LowLevel {
op,
opt_closure_layout,
} => run_low_level(env, layout_ids, scope, parent, layout, *op, arguments),
CallType::Foreign {
foreign_symbol,