Skip to content

Commit

Permalink
Merge cc82f26 into 3f67605
Browse files Browse the repository at this point in the history
  • Loading branch information
vezenovm authored Mar 11, 2024
2 parents 3f67605 + cc82f26 commit 589337a
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions compiler/noirc_evaluator/src/ssa/acir_gen/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2268,11 +2268,9 @@ impl Context {

// We can omit the element size array for arrays which don't contain arrays or slices.
fn can_omit_element_sizes_array(array_typ: &Type) -> bool {
if array_typ.contains_slice_element() {
return false;
}
let Type::Array(types, _) = array_typ else {
panic!("ICE: expected array type");
let types = match array_typ {
Type::Array(types, _) | Type::Slice(types) => types,
_ => panic!("ICE: expected array or slice type"),
};

!types.iter().any(|typ| typ.contains_an_array())
Expand Down

0 comments on commit 589337a

Please sign in to comment.