Commit a9301a3
authored
[Profile] Fix CFG BB weight calculation (#17)
I might be missing something, but the first argument to reduce is the
accumulator which should be a number, not an CFGInstruction. This
silently failed because .weight on a number is undefined, which just got
subsistuted for 0.1 parent fa31c47 commit a9301a3
1 file changed
+2
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
| 22 | + | |
| 23 | + | |
26 | 24 | | |
27 | 25 | | |
28 | 26 | | |
| |||
0 commit comments