mirror of
https://github.com/roc-lang/roc.git
synced 2024-11-10 18:08:55 +03:00
Single-threaded layout interner should resolve recursive pointer
This commit is contained in:
parent
44acb7e047
commit
61b11c9882
@ -843,7 +843,7 @@ macro_rules! st_impl {
|
||||
// - if so, use that one immediately
|
||||
// - otherwise, allocate a new slot, update the recursive layout, and intern
|
||||
if let Some(in_layout) = self.map.get(&normalized_layout) {
|
||||
return *in_layout;
|
||||
return self.insert(Layout::RecursivePointer(*in_layout));
|
||||
}
|
||||
|
||||
// This recursive layout must be new to the interner, reserve a slot and fill it in.
|
||||
|
Loading…
Reference in New Issue
Block a user