[llvm] [TableGen] Use std::move instead of swap. NFC. (PR #81606)
Jay Foad via llvm-commits
llvm-commits at lists.llvm.org
Tue Feb 13 06:44:12 PST 2024
================
@@ -1270,11 +1270,10 @@ void AsmMatcherInfo::buildRegisterClasses(
}
RegisterSet Tmp;
- std::swap(Tmp, ContainingSet);
- std::insert_iterator<RegisterSet> II(ContainingSet,
- ContainingSet.begin());
- std::set_intersection(Tmp.begin(), Tmp.end(), RS.begin(), RS.end(), II,
- LessRecordByID());
+ std::insert_iterator<RegisterSet> II(Tmp, Tmp.begin());
+ std::set_intersection(ContainingSet.begin(), ContainingSet.end(),
+ RS.begin(), RS.end(), II, LessRecordByID());
----------------
jayfoad wrote:
Done in 5e5e51e9062895bed9fcf0dbb157d868be0adf8d.
https://github.com/llvm/llvm-project/pull/81606
More information about the llvm-commits
mailing list