Return normalized representation of recursive union as the rec ptr

This commit is contained in:
Ayaz Hafiz 2023-01-25 15:16:48 -06:00
parent 01ef3ffd02
commit cb00619ce3
No known key found for this signature in database
GPG key ID: 0E2A37416A25EF58

View file

@ -692,7 +692,7 @@ impl<'a> LayoutInterner<'a> for TLLayoutInterner<'a> {
if let Some(full_layout) = new_interned_full_layout { if let Some(full_layout) = new_interned_full_layout {
self.record(full_layout, interned); self.record(full_layout, interned);
} }
interned self.insert(Layout::RecursivePointer(interned))
} }
fn get(&self, key: InLayout<'a>) -> Layout<'a> { 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(normalized_layout, slot);
self.map.insert(full_layout, slot); self.map.insert(full_layout, slot);
slot self.insert(Layout::RecursivePointer(slot))
} }
fn get(&self, key: InLayout<'a>) -> Layout<'a> { fn get(&self, key: InLayout<'a>) -> Layout<'a> {