Skip to content

Commit

Permalink
Merge pull request #2836 from uweigand/framesizefix
Browse files Browse the repository at this point in the history
Fix frame size after unwind rework
  • Loading branch information
cfallin authored Apr 14, 2021
2 parents 1f21b32 + e3bb36b commit fd4bfbe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cranelift/codegen/src/machinst/abi_impl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1298,7 +1298,7 @@ impl<M: ABIMachineSpec> ABICallee for ABICalleeImpl<M> {
}

// Save clobbered registers.
let (_, clobber_insts) = M::gen_clobber_save(
let (clobber_size, clobber_insts) = M::gen_clobber_save(
self.call_conv,
&self.flags,
&self.clobbered,
Expand All @@ -1317,7 +1317,7 @@ impl<M: ABIMachineSpec> ABICallee for ABICalleeImpl<M> {
// [crate::machinst::abi_impl](this module) for more details
// on stackframe layout and nominal SP maintenance.

self.total_frame_size = Some(total_stacksize);
self.total_frame_size = Some(total_stacksize + clobber_size as u32);
insts
}

Expand Down

0 comments on commit fd4bfbe

Please sign in to comment.