fix bug in expect serialization of lambda sets

This commit is contained in:
Folkert 2022-09-16 22:19:55 +02:00
parent 52f0dfbaf4
commit bdec61d5bb
No known key found for this signature in database
GPG key ID: 1F17F6FFD112B97C
3 changed files with 45 additions and 4 deletions

View file

@ -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) {