[llvm] [FileCheck] Use move semantics instead of std::swap. NFC. (PR #123304)
Jay Foad via llvm-commits
llvm-commits at lists.llvm.org
Thu Jan 23 03:44:14 PST 2025
================
@@ -837,8 +837,9 @@ struct FileCheckString {
/// Hold the DAG/NOT strings occurring in the input file.
std::vector<DagNotPrefixInfo> DagNotStrings;
- FileCheckString(const Pattern &P, StringRef S, SMLoc L)
- : Pat(P), Prefix(S), Loc(L) {}
+ FileCheckString(const Pattern &P, StringRef S, SMLoc L,
+ std::vector<DagNotPrefixInfo> &&D)
+ : Pat(P), Prefix(S), Loc(L), DagNotStrings(std::move(D)) {}
----------------
jayfoad wrote:
Good idea. Done.
https://github.com/llvm/llvm-project/pull/123304
More information about the llvm-commits
mailing list