Skip to content

Commit 5624755

Browse files
committed
Also do Pattern
1 parent 1cb24b7 commit 5624755

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

llvm/lib/FileCheck/FileCheck.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1933,7 +1933,7 @@ bool FileCheck::readCheckFile(
19331933
}
19341934

19351935
// Okay, add the string we captured to the output vector and move on.
1936-
CheckStrings.emplace_back(P, UsedPrefix, PatternLoc,
1936+
CheckStrings.emplace_back(std::move(P), UsedPrefix, PatternLoc,
19371937
std::move(DagNotMatches));
19381938
DagNotMatches = ImplicitNegativeChecks;
19391939
}

llvm/lib/FileCheck/FileCheckImpl.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -837,9 +837,9 @@ struct FileCheckString {
837837
/// Hold the DAG/NOT strings occurring in the input file.
838838
std::vector<DagNotPrefixInfo> DagNotStrings;
839839

840-
FileCheckString(const Pattern &P, StringRef S, SMLoc L,
840+
FileCheckString(Pattern &&P, StringRef S, SMLoc L,
841841
std::vector<DagNotPrefixInfo> &&D)
842-
: Pat(P), Prefix(S), Loc(L), DagNotStrings(std::move(D)) {}
842+
: Pat(std::move(P)), Prefix(S), Loc(L), DagNotStrings(std::move(D)) {}
843843

844844
/// Matches check string and its "not strings" and/or "dag strings".
845845
size_t Check(const SourceMgr &SM, StringRef Buffer, bool IsLabelScanMode,

0 commit comments

Comments
 (0)