llvm-project
f7cddf80 - [TableGen] Use std::move instead of swap. NFC. (#81606)

Commit
1 year ago
[TableGen] Use std::move instead of swap. NFC. (#81606) Historically TableGen has used `A.swap(B)` to move containers without the expense of copying them. Perhaps this predated rvalue references. In any case `A = std::move(B)` seems like a more direct way to implement this when only A is required after the operation.
Author
Parents
Loading