Skip to content

Commit

Permalink
add call args to rc tracker
Browse files Browse the repository at this point in the history
  • Loading branch information
vezenovm committed Dec 12, 2024
1 parent 8f7bbb1 commit 3f962d1
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions compiler/noirc_evaluator/src/ssa/opt/die.rs
Original file line number Diff line number Diff line change
Expand Up @@ -603,6 +603,14 @@ impl RcTracker {
self.mutated_array_types.insert(typ);
}
}
Instruction::Call { arguments, .. } => {
for arg in arguments {
let typ = function.dfg.type_of_value(*arg);
if matches!(&typ, Type::Array(..) | Type::Slice(..)) {
self.mutated_array_types.insert(typ);
}
}
}
_ => {}
}
}
Expand Down

0 comments on commit 3f962d1

Please sign in to comment.