llvm-project
7eb5c08a - [ADT] Use "= default" in DirectedGraph.h (#161628)

Commit
207 days ago
[ADT] Use "= default" in DirectedGraph.h (#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.
Parents
Loading