Skip to content

Commit

Permalink
Fix bugs.
Browse files Browse the repository at this point in the history
  • Loading branch information
azteca1998 committed Nov 27, 2024
1 parent 1546c28 commit e440ca5
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/libfuncs/array.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1607,9 +1607,6 @@ pub fn build_slice<'ctx, 'this>(
));

{
// TODO: If shared -> Clone and drop.
// TODO: If not shared -> Move and manually free (same as in array_get but with different offsets).

let (elem_ty, elem_layout) =
registry.build_type_with_layout(context, helper, registry, metadata, &info.ty)?;
let elem_stride =
Expand Down Expand Up @@ -1675,6 +1672,7 @@ pub fn build_slice<'ctx, 'this>(

match metadata.get::<DupOverridesMeta>() {
Some(dup_overrides_meta) if dup_overrides_meta.is_overriden(&info.ty) => {
let k0 = valid_block.const_int(context, location, 0, 64)?;
valid_block.append_operation(scf::r#for(
k0,
slice_size,
Expand Down

0 comments on commit e440ca5

Please sign in to comment.