Fix not leaf function

This commit is contained in:
Brendan Hansknecht 2020-11-23 22:18:52 -08:00
parent 09410d7a02
commit bd8046056f

View file

@ -123,7 +123,7 @@ impl<'a, GPReg: GPRegTrait, ASM: Assembler<GPReg>, CC: CallConv<GPReg>> Backend<
}
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.
self.stack_size = CC::shadow_space_size() as i32 - CC::red_zone_size() as i32;
}