[llvm] 63b16af - [TableGen] Use std::move. NFC
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 15 14:50:41 PDT 2024
Author: Fangrui Song
Date: 2024-07-15T14:50:36-07:00
New Revision: 63b16afc54527d8976571d36b17d85f401e4f6a1
URL: https://github.com/llvm/llvm-project/commit/63b16afc54527d8976571d36b17d85f401e4f6a1
DIFF: https://github.com/llvm/llvm-project/commit/63b16afc54527d8976571d36b17d85f401e4f6a1.diff
LOG: [TableGen] Use std::move. NFC
Fix #98719
Added:
Modified:
llvm/utils/TableGen/Common/GlobalISel/GlobalISelMatchTable.h
Removed:
################################################################################
diff --git a/llvm/utils/TableGen/Common/GlobalISel/GlobalISelMatchTable.h b/llvm/utils/TableGen/Common/GlobalISel/GlobalISelMatchTable.h
index edddc051c162c..9e345dceddf52 100644
--- a/llvm/utils/TableGen/Common/GlobalISel/GlobalISelMatchTable.h
+++ b/llvm/utils/TableGen/Common/GlobalISel/GlobalISelMatchTable.h
@@ -1175,7 +1175,7 @@ class CmpPredicateOperandMatcher : public OperandPredicateMatcher {
public:
CmpPredicateOperandMatcher(unsigned InsnVarID, unsigned OpIdx, std::string P)
: OperandPredicateMatcher(OPM_CmpPredicate, InsnVarID, OpIdx),
- PredName(P) {}
+ PredName(std::move(P)) {}
bool isIdentical(const PredicateMatcher &B) const override {
return OperandPredicateMatcher::isIdentical(B) &&
More information about the llvm-commits
mailing list