mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-26 13:29:12 +00:00
correct alignment calculation in RC code
This commit is contained in:
parent
412e199939
commit
e0b5a76a04
2 changed files with 15 additions and 15 deletions
|
@ -2661,9 +2661,7 @@ impl<'a> Layout<'a> {
|
|||
Layout::RecursivePointer(_) => {
|
||||
unreachable!("should be looked up to get an actual layout")
|
||||
}
|
||||
Layout::Boxed(inner) => interner
|
||||
.get(*inner)
|
||||
.allocation_alignment_bytes(interner, target_info),
|
||||
Layout::Boxed(inner) => Ord::max(ptr_width, interner.get(*inner).alignment_bytes(interner, target_info)),
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue