mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-25 04:52:32 +00:00
no_niche to represent lack of captures niche
This commit is contained in:
parent
a5ea4f8c11
commit
71d612078a
6 changed files with 31 additions and 35 deletions
|
@ -170,7 +170,7 @@ impl<'a> CodeGenHelp<'a> {
|
|||
let arg_layouts = self.arena.alloc([layout]);
|
||||
let expr = Expr::Call(Call {
|
||||
call_type: CallType::ByName {
|
||||
name: LambdaName::only_receiver(proc_name),
|
||||
name: LambdaName::no_niche(proc_name),
|
||||
ret_layout,
|
||||
arg_layouts,
|
||||
specialization_id: CallSpecId::BACKEND_DUMMY,
|
||||
|
@ -262,7 +262,7 @@ impl<'a> CodeGenHelp<'a> {
|
|||
|
||||
Some(Expr::Call(Call {
|
||||
call_type: CallType::ByName {
|
||||
name: LambdaName::only_receiver(proc_name),
|
||||
name: LambdaName::no_niche(proc_name),
|
||||
ret_layout,
|
||||
arg_layouts,
|
||||
specialization_id: CallSpecId::BACKEND_DUMMY,
|
||||
|
@ -343,7 +343,7 @@ impl<'a> CodeGenHelp<'a> {
|
|||
};
|
||||
|
||||
self.specializations[spec_index].proc = Some(Proc {
|
||||
name: LambdaName::only_receiver(proc_symbol),
|
||||
name: LambdaName::no_niche(proc_symbol),
|
||||
args,
|
||||
body,
|
||||
closure_data_layout: None,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue