mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-03 00:24:34 +00:00
Return normalized representation of recursive union as the rec ptr
This commit is contained in:
parent
01ef3ffd02
commit
cb00619ce3
1 changed files with 2 additions and 2 deletions
|
@ -692,7 +692,7 @@ impl<'a> LayoutInterner<'a> for TLLayoutInterner<'a> {
|
|||
if let Some(full_layout) = new_interned_full_layout {
|
||||
self.record(full_layout, interned);
|
||||
}
|
||||
interned
|
||||
self.insert(Layout::RecursivePointer(interned))
|
||||
}
|
||||
|
||||
fn get(&self, key: InLayout<'a>) -> Layout<'a> {
|
||||
|
@ -824,7 +824,7 @@ macro_rules! st_impl {
|
|||
self.map.insert(normalized_layout, slot);
|
||||
self.map.insert(full_layout, slot);
|
||||
|
||||
slot
|
||||
self.insert(Layout::RecursivePointer(slot))
|
||||
}
|
||||
|
||||
fn get(&self, key: InLayout<'a>) -> Layout<'a> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue