mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-04 04:08:19 +00:00
Correct refcounting check to be recursive through aggregate types
This commit is contained in:
parent
951cb1ef3d
commit
9b6798ead1
2 changed files with 3 additions and 1 deletions
|
@ -104,7 +104,7 @@ pub(crate) fn layout_refcounted<'a, 'ctx>(
|
|||
) -> BasicValueEnum<'ctx> {
|
||||
let is_refcounted = layout_interner
|
||||
.get_repr(layout)
|
||||
.is_refcounted(layout_interner);
|
||||
.contains_refcounted(layout_interner);
|
||||
env.context
|
||||
.bool_type()
|
||||
.const_int(is_refcounted as u64, false)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue