From c27a15205948d4b5c3dce20dfdc4052ea2566bdc Mon Sep 17 00:00:00 2001 From: Brian Carroll Date: Sat, 30 Apr 2022 18:13:45 +0100 Subject: [PATCH] Fix confusion between isize and usize in mono code_gen_help --- compiler/mono/src/code_gen_help/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/mono/src/code_gen_help/mod.rs b/compiler/mono/src/code_gen_help/mod.rs index 7c5cb3eecc..e5799a571b 100644 --- a/compiler/mono/src/code_gen_help/mod.rs +++ b/compiler/mono/src/code_gen_help/mod.rs @@ -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]));