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 {
|
if let Layout::RecursivePointer = tag_field_layout {
|
||||||
let ptr = allocate_with_refcount(env, &tag_layout, val);
|
let ptr = allocate_with_refcount(env, &tag_layout, val);
|
||||||
|
|
||||||
builder.build_store(ptr, val);
|
let ptr = cast_basic_basic(
|
||||||
|
builder,
|
||||||
let as_i64_ptr = cast_basic_basic(
|
|
||||||
env.builder,
|
|
||||||
ptr.into(),
|
ptr.into(),
|
||||||
env.context
|
ctx.i64_type().ptr_type(AddressSpace::Generic).into(),
|
||||||
.i64_type()
|
|
||||||
.ptr_type(AddressSpace::Generic)
|
|
||||||
.into(),
|
|
||||||
);
|
);
|
||||||
|
|
||||||
field_vals.push(as_i64_ptr);
|
field_vals.push(ptr);
|
||||||
} else {
|
} else {
|
||||||
field_vals.push(val);
|
field_vals.push(val);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue