Commit 7eb5c08
authored
[ADT] Use "= default" in DirectedGraph.h (llvm#161628)
This patch drops user copy/move constructors and assignment operators
of DirectedGraph to adhere to the Rule of Zero.
Now, the original code:
DGraphType &operator=(const DGraphType &&G)
is most likely unintended -- a move assignment operator with const
r-value reference. This patch fixes that.1 parent 0dd8f32 commit 7eb5c08
1 file changed
+0
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
181 | 181 | | |
182 | 182 | | |
183 | 183 | | |
184 | | - | |
185 | | - | |
186 | | - | |
187 | | - | |
188 | | - | |
189 | | - | |
190 | | - | |
191 | | - | |
192 | | - | |
193 | | - | |
194 | 184 | | |
195 | 185 | | |
196 | 186 | | |
| |||
0 commit comments