Skip to content

Commit

Permalink
fix: revert #6375
Browse files Browse the repository at this point in the history
  • Loading branch information
sirasistant committed Oct 30, 2024
1 parent 4523b29 commit 58d0406
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -442,7 +442,13 @@ impl FunctionBuilder {
match self.type_of_value(value) {
Type::Numeric(_) => (),
Type::Function => (),
Type::Reference(_) => (),
Type::Reference(element) => {
if element.contains_an_array() {
let reference = value;
let value = self.insert_load(reference, element.as_ref().clone());
self.update_array_reference_count(value, increment);
}
}
Type::Array(..) | Type::Slice(..) => {
// If there are nested arrays or slices, we wait until ArrayGet
// is issued to increment the count of that array.
Expand Down

0 comments on commit 58d0406

Please sign in to comment.