Change round_up_to_alignment to a macro to work on more Rust types

This commit is contained in:
Brian Carroll 2021-12-08 21:11:10 +00:00
parent 6a801ebc7e
commit 1ba654c5b2
4 changed files with 20 additions and 18 deletions

View file

@ -442,7 +442,7 @@ impl<'a> CodeBuilder<'a> {
if frame_size != 0 {
if let Some(frame_ptr_id) = frame_pointer {
let aligned_size = round_up_to_alignment(frame_size, FRAME_ALIGNMENT_BYTES);
let aligned_size = round_up_to_alignment!(frame_size, FRAME_ALIGNMENT_BYTES);
self.build_stack_frame_push(aligned_size, frame_ptr_id);
self.build_stack_frame_pop(aligned_size, frame_ptr_id);
}