mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 13:59:08 +00:00
Single-threaded layout interner should resolve recursive pointer
This commit is contained in:
parent
44acb7e047
commit
61b11c9882
1 changed files with 1 additions and 1 deletions
|
@ -843,7 +843,7 @@ macro_rules! st_impl {
|
||||||
// - if so, use that one immediately
|
// - if so, use that one immediately
|
||||||
// - otherwise, allocate a new slot, update the recursive layout, and intern
|
// - otherwise, allocate a new slot, update the recursive layout, and intern
|
||||||
if let Some(in_layout) = self.map.get(&normalized_layout) {
|
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.
|
// This recursive layout must be new to the interner, reserve a slot and fill it in.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue