mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-30 07:14:46 +00:00
clean up comment
This commit is contained in:
parent
86c1ec27a9
commit
e4566b9757
1 changed files with 0 additions and 14 deletions
|
@ -471,20 +471,6 @@ pub fn build_expr<'a, 'ctx, 'env>(
|
||||||
array_type.into(),
|
array_type.into(),
|
||||||
);
|
);
|
||||||
|
|
||||||
// let struct_pointer = builder.build_alloca(array_type, "struct_poitner");
|
|
||||||
// builder.build_store(
|
|
||||||
// builder
|
|
||||||
// .build_bitcast(
|
|
||||||
// struct_pointer,
|
|
||||||
// struct_type.ptr_type(inkwell::AddressSpace::Generic),
|
|
||||||
// "",
|
|
||||||
// )
|
|
||||||
// .into_pointer_value(),
|
|
||||||
// struct_val,
|
|
||||||
// );
|
|
||||||
//
|
|
||||||
// let result = builder.build_load(struct_pointer, "");
|
|
||||||
|
|
||||||
// For unclear reasons, we can't cast an array to a struct on the other side.
|
// For unclear reasons, we can't cast an array to a struct on the other side.
|
||||||
// the solution is to wrap the array in a struct (yea...)
|
// the solution is to wrap the array in a struct (yea...)
|
||||||
let wrapper_type = ctx.struct_type(&[array_type.into()], false);
|
let wrapper_type = ctx.struct_type(&[array_type.into()], false);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue