use in decision_tree

This commit is contained in:
Folkert 2021-06-20 23:53:57 +02:00
parent 7f51bf77aa
commit 3a6ef8a53d
9 changed files with 111 additions and 76 deletions

View file

@ -1820,7 +1820,8 @@ fn lookup_at_index_ptr<'a, 'ctx, 'env>(
// a pointer to the block of memory representation
builder.build_bitcast(
result,
basic_type_from_layout(env, structure_layout),
block_of_memory(env.context, structure_layout, env.ptr_bytes)
.ptr_type(AddressSpace::Generic),
"cast_rec_pointer_lookup_at_index_ptr",
)
} else {