Commit 60e3f91
committed
Return result of
This allows for `deref_expr_r` to be made constant, which makes it clear
that the set is rebuilt for each assign instruction and is built in one
place only. This also makes it clear that the result of the
`collect_deref_expr` function is its return value.
There is no performance cost to this refactor as Return Value
Optimization (RVO) applies in this case.collect_deref_expr function by value1 parent 20d3841 commit 60e3f91
1 file changed
+6
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
27 | | - | |
28 | | - | |
| 26 | + | |
29 | 27 | | |
30 | | - | |
| 28 | + | |
| 29 | + | |
31 | 30 | | |
32 | | - | |
| 31 | + | |
33 | 32 | | |
| 33 | + | |
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
51 | | - | |
52 | 50 | | |
53 | 51 | | |
54 | | - | |
| 52 | + | |
55 | 53 | | |
56 | 54 | | |
57 | 55 | | |
| |||
0 commit comments