mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-29 14:54:47 +00:00
Change round_up_to_alignment to a macro to work on more Rust types
This commit is contained in:
parent
6a801ebc7e
commit
1ba654c5b2
4 changed files with 20 additions and 18 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue