mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-22 11:32:27 +00:00
mono: generate Eq functions for Boxed layout
This commit is contained in:
parent
817ffba982
commit
7c7e450756
4 changed files with 65 additions and 11 deletions
|
@ -286,11 +286,11 @@ impl<'a> CodeGenHelp<'a> {
|
|||
&mut self,
|
||||
ident_ids: &mut IdentIds,
|
||||
ctx: &mut Context<'a>,
|
||||
layout: Layout<'a>,
|
||||
orig_layout: Layout<'a>,
|
||||
) -> Symbol {
|
||||
use HelperOp::*;
|
||||
|
||||
let layout = self.replace_rec_ptr(ctx, layout);
|
||||
let layout = self.replace_rec_ptr(ctx, orig_layout);
|
||||
|
||||
let found = self
|
||||
.specializations
|
||||
|
@ -450,7 +450,9 @@ impl<'a> CodeGenHelp<'a> {
|
|||
layout
|
||||
}
|
||||
|
||||
Layout::Boxed(inner) => self.replace_rec_ptr(ctx, *inner),
|
||||
Layout::Boxed(inner) => {
|
||||
Layout::Boxed(self.arena.alloc(self.replace_rec_ptr(ctx, *inner)))
|
||||
}
|
||||
|
||||
Layout::LambdaSet(lambda_set) => {
|
||||
self.replace_rec_ptr(ctx, lambda_set.runtime_representation())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue