cleanup misc minor issues

This commit is contained in:
Brendan Hansknecht 2024-04-11 22:17:12 -07:00
parent 48eb9c31a9
commit 9e70308952
No known key found for this signature in database
GPG key ID: 0EA784685083E75B
3 changed files with 4 additions and 5 deletions

View file

@ -1101,6 +1101,7 @@ fn link_macos(
"-w",
"-macos_version_min",
&get_macos_version(),
"-ld_classic",
])
.args(input_paths)
.args(extra_link_flags());

View file

@ -1082,6 +1082,8 @@ impl<
arg_layouts: &[InLayout<'a>],
ret_layout: &InLayout<'a>,
) {
debug_assert_eq!(args.len(), arg_layouts.len());
// Save used caller saved regs.
self.storage_manager
.push_used_caller_saved_regs_to_stack(&mut self.buf);
@ -5335,7 +5337,7 @@ impl<
&dst,
bitcode::UTILS_ALLOCATE_WITH_REFCOUNT.to_string(),
&[data_bytes, element_alignment, element_refcounted],
&[Layout::U64, Layout::U32],
&[Layout::U64, Layout::U32, Layout::BOOL],
&Layout::U64,
);
}

View file

@ -53,10 +53,6 @@ impl HelperOp {
fn is_dec(&self) -> bool {
matches!(self, Self::Dec)
}
fn is_inc(&self) -> bool {
matches!(self, Self::Inc | Self::IncN)
}
}
#[derive(Debug)]