Skip to content

Commit

Permalink
code review
Browse files Browse the repository at this point in the history
  • Loading branch information
guipublic committed Aug 3, 2023
1 parent 145f2c4 commit 95d1d76
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions crates/noirc_evaluator/src/ssa/opt/array_use.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@ fn last_use(
}
Instruction::Call { arguments, .. } => {
for argument in arguments {
if matches!(dfg[*argument], Value::Array { .. }) {
let array = dfg.resolve(*argument);
array_def.insert(array, *instruction_id);
let resolved_arg = dfg.resolve(*argument);
if matches!(dfg[resolved_arg], Value::Array { .. }) {
array_def.insert(resolved_arg, *instruction_id);
}
}
}
Expand Down

0 comments on commit 95d1d76

Please sign in to comment.