mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 06:14:46 +00:00
Build erased load in llvm
This commit is contained in:
parent
fcb907b0c9
commit
f37cc48e88
2 changed files with 35 additions and 2 deletions
|
@ -1134,7 +1134,14 @@ pub(crate) fn build_exp_expr<'a, 'ctx>(
|
|||
let callee = scope.load_symbol(callee).into_pointer_value();
|
||||
erased::build(env, value, callee).into()
|
||||
}
|
||||
ErasedLoad { .. } => todo_lambda_erasure!(),
|
||||
ErasedLoad { symbol, field } => {
|
||||
let value = scope.load_symbol(symbol).into_struct_value();
|
||||
let wanted_llvm_type =
|
||||
basic_type_from_layout(env, layout_interner, layout_interner.get_repr(layout))
|
||||
.into_pointer_type();
|
||||
|
||||
erased::load(env, value, *field, wanted_llvm_type).into()
|
||||
}
|
||||
|
||||
Reset {
|
||||
symbol,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue