Commit 54f0010
committed
Avoid unnecessary copy in count_eloc.cpp
There is a type mismatch here: the maps contain
`std::pair<const irep_idt, T>` (note the const).
This forces the compiler to make copies despite the reference tag. Using auto
instead fixes this instance and generally reduces the potential for making
similar mistakes.1 parent 388815c commit 54f0010
1 file changed
+4
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
57 | | - | |
58 | | - | |
| 57 | + | |
| 58 | + | |
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
69 | | - | |
70 | | - | |
| 69 | + | |
| 70 | + | |
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
| |||
0 commit comments