Skip to content

Commit

Permalink
This needs a copy now.
Browse files Browse the repository at this point in the history
This type-checked in a previous version of the compiler due to a type
checking bug that has since been fixed.
  • Loading branch information
athas committed Feb 9, 2023
1 parent c023cd4 commit 122e87b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/compiler/codegen/instr_count.fut
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ let instr_count [max_nodes] (tree: Tree[max_nodes]) =
map2 (instr_count_fix_post tree.nodes initial_result) (iota max_nodes) initial_result |>
unzip2
in
scatter initial_result fix_idx fix_offsets
scatter (copy initial_result) fix_idx fix_offsets

let shift_right [n] 't (x: t) (xs: [n]t) : [n]t =
xs |>
Expand Down

0 comments on commit 122e87b

Please sign in to comment.