mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-03 00:24:34 +00:00
fix oversight
This commit is contained in:
parent
0dde6da77d
commit
4b6eaca284
1 changed files with 4 additions and 9 deletions
|
@ -767,18 +767,13 @@ pub fn build_exp_expr<'a, 'ctx, 'env>(
|
|||
if let Layout::RecursivePointer = tag_field_layout {
|
||||
let ptr = allocate_with_refcount(env, &tag_layout, val);
|
||||
|
||||
builder.build_store(ptr, val);
|
||||
|
||||
let as_i64_ptr = cast_basic_basic(
|
||||
env.builder,
|
||||
let ptr = cast_basic_basic(
|
||||
builder,
|
||||
ptr.into(),
|
||||
env.context
|
||||
.i64_type()
|
||||
.ptr_type(AddressSpace::Generic)
|
||||
.into(),
|
||||
ctx.i64_type().ptr_type(AddressSpace::Generic).into(),
|
||||
);
|
||||
|
||||
field_vals.push(as_i64_ptr);
|
||||
field_vals.push(ptr);
|
||||
} else {
|
||||
field_vals.push(val);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue