no_niche to represent lack of captures niche

This commit is contained in:
Ayaz Hafiz 2022-07-01 16:06:48 -04:00 committed by ayazhafiz
parent a5ea4f8c11
commit 71d612078a
No known key found for this signature in database
GPG key ID: B443F7A3030C9AED
6 changed files with 31 additions and 35 deletions

View file

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