Skip to content

Commit

Permalink
fix: always codegen inc_rc
Browse files Browse the repository at this point in the history
  • Loading branch information
sirasistant committed Nov 28, 2023
1 parent 89068f5 commit 7a08d1d
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions compiler/noirc_evaluator/src/ssa/function_builder/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -462,11 +462,6 @@ impl FunctionBuilder {
/// within the given value. If the given value is not an array and does not contain
/// any arrays, this does nothing.
pub(crate) fn increment_array_reference_count(&mut self, value: ValueId) {
// Reference-counted arrays are only needed for Brillig's copy on write optimization.
if self.current_function.runtime() != RuntimeType::Brillig {
return;
}

match self.type_of_value(value) {
Type::Numeric(_) => (),
Type::Function => (),
Expand Down

0 comments on commit 7a08d1d

Please sign in to comment.