Fix confusion between isize and usize in mono code_gen_help

This commit is contained in:
Brian Carroll 2022-04-30 18:13:45 +01:00 committed by Jared Cone
parent 07b3c74713
commit c27a152059
No known key found for this signature in database
GPG key ID: 99D4217479603EA1

View file

@ -83,7 +83,7 @@ pub struct CodeGenHelp<'a> {
impl<'a> CodeGenHelp<'a> {
pub fn new(arena: &'a Bump, target_info: TargetInfo, home: ModuleId) -> Self {
let layout_isize = Layout::usize(target_info);
let layout_isize = Layout::isize(target_info);
// Refcount is a boxed isize. TODO: use the new Box layout when dev backends support it
let union_refcount = UnionLayout::NonNullableUnwrapped(arena.alloc([layout_isize]));