mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-03 19:58:18 +00:00
fix bug in expect serialization of lambda sets
This commit is contained in:
parent
52f0dfbaf4
commit
bdec61d5bb
3 changed files with 45 additions and 4 deletions
|
@ -219,9 +219,9 @@ fn build_clone<'a, 'ctx, 'env>(
|
|||
when_recursive,
|
||||
),
|
||||
|
||||
// Since we will never actually display functions (and hence lambda sets), we can just pass
|
||||
// back the nullptr.
|
||||
Layout::LambdaSet(_) => env.ptr_int().const_zero(),
|
||||
// Since we will never actually display functions (and hence lambda sets)
|
||||
// we just write nothing to the buffer
|
||||
Layout::LambdaSet(_) => cursors.extra_offset,
|
||||
|
||||
Layout::Union(union_layout) => {
|
||||
if layout.safe_to_memcpy(env.layout_interner) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue