Skip to content

Commit

Permalink
Merge branch 'af/ssa-preprocess-fns' of github.com:noir-lang/noir int…
Browse files Browse the repository at this point in the history
…o af/ssa-preprocess-fns
  • Loading branch information
aakoshh committed Jan 17, 2025
2 parents 44dbfd2 + 4826682 commit 382280d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/noirc_evaluator/src/ssa/opt/inlining.rs
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ fn compute_times_called(
callers
.iter()
.map(|(callee, callers)| {
let total_calls = callers.iter().fold(0, |acc, (_caller, calls)| acc + calls);
let total_calls = callers.values().sum();
(*callee, total_calls)
})
.collect()
Expand Down

0 comments on commit 382280d

Please sign in to comment.