Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion compiler/noirc_evaluator/src/ssa/interpreter/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -877,7 +877,7 @@ impl<'ssa, W: Write> Interpreter<'ssa, W> {
let index = self.lookup_u32(index, "array get index")?;
let mut index = index - offset.to_u32();

let element = if array.elements.borrow().len() == 0 {
let element = if array.elements.borrow().is_empty() {
// Accessing an array of 0-len is replaced by asserting
// the branch is not-taken during acir-gen and
// a zeroed type is used in case of array get
Expand Down
Loading