clean up comment

This commit is contained in:
Folkert 2020-03-20 11:47:22 +01:00
parent 86c1ec27a9
commit e4566b9757

View file

@ -471,20 +471,6 @@ pub fn build_expr<'a, 'ctx, 'env>(
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.
// the solution is to wrap the array in a struct (yea...)
let wrapper_type = ctx.struct_type(&[array_type.into()], false);