mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-30 07:14:46 +00:00
Fix not leaf function
This commit is contained in:
parent
09410d7a02
commit
bd8046056f
1 changed files with 1 additions and 1 deletions
|
@ -123,7 +123,7 @@ impl<'a, GPReg: GPRegTrait, ASM: Assembler<GPReg>, CC: CallConv<GPReg>> Backend<
|
||||||
}
|
}
|
||||||
|
|
||||||
fn set_not_leaf_function(&mut self) {
|
fn set_not_leaf_function(&mut self) {
|
||||||
self.leaf_function = true;
|
self.leaf_function = false;
|
||||||
// If this is not a leaf function, it can't use the shadow space.
|
// If this is not a leaf function, it can't use the shadow space.
|
||||||
self.stack_size = CC::shadow_space_size() as i32 - CC::red_zone_size() as i32;
|
self.stack_size = CC::shadow_space_size() as i32 - CC::red_zone_size() as i32;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue