mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-29 06:44:46 +00:00
Fix apparent bug in Layout::is_refcounted
It contradicts build_tag in compiler/gen_llvm/src/llvm/build.rs, where we create a NonNullableUnwrapped by calling reserve_with_refcount_union_as_block_of_memory
This commit is contained in:
parent
f3ca3be507
commit
211a5d9bf3
1 changed files with 2 additions and 7 deletions
|
@ -968,14 +968,9 @@ impl<'a> Layout<'a> {
|
|||
use Layout::*;
|
||||
|
||||
match self {
|
||||
Union(variant) => {
|
||||
use UnionLayout::*;
|
||||
Union(UnionLayout::NonRecursive(_)) => false,
|
||||
|
||||
matches!(
|
||||
variant,
|
||||
Recursive(_) | NullableWrapped { .. } | NullableUnwrapped { .. }
|
||||
)
|
||||
}
|
||||
Union(_) => true,
|
||||
|
||||
RecursivePointer => true,
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue