Commit efee051
authored
[UR] Fix logger use after move (Coverity) (#18665)
When the callback sink and the standard sink are both enabled using
`std::forward<Args>(args)...` results in a use-after-move. This patches
fixes the issue by letting the r-value references decay to l-value
references when expanding the `args...` parameter pack and allowing the
parameter pack to be passed to multiple functions. The `logger::log()`
member function does not need to take ownership of the objects being
passed in.1 parent 6f324d3 commit efee051
1 file changed
Lines changed: 3 additions & 6 deletions
Lines changed: 3 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
58 | | - | |
59 | | - | |
| 58 | + | |
60 | 59 | | |
61 | 60 | | |
62 | 61 | | |
63 | 62 | | |
64 | | - | |
65 | | - | |
| 63 | + | |
66 | 64 | | |
67 | 65 | | |
68 | 66 | | |
69 | 67 | | |
70 | 68 | | |
71 | 69 | | |
72 | | - | |
73 | | - | |
| 70 | + | |
74 | 71 | | |
75 | 72 | | |
76 | 73 | | |
| |||
0 commit comments