Skip to content

Commit 89892ef

Browse files
MaskRayyuxuanchen1997
authored andcommitted
[TableGen] Use std::move. NFC
Summary: Fix #98719 Test Plan: Reviewers: Subscribers: Tasks: Tags: Differential Revision: https://phabricator.intern.facebook.com/D60251658
1 parent 9c42983 commit 89892ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/utils/TableGen/Common/GlobalISel/GlobalISelMatchTable.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1175,7 +1175,7 @@ class CmpPredicateOperandMatcher : public OperandPredicateMatcher {
11751175
public:
11761176
CmpPredicateOperandMatcher(unsigned InsnVarID, unsigned OpIdx, std::string P)
11771177
: OperandPredicateMatcher(OPM_CmpPredicate, InsnVarID, OpIdx),
1178-
PredName(P) {}
1178+
PredName(std::move(P)) {}
11791179

11801180
bool isIdentical(const PredicateMatcher &B) const override {
11811181
return OperandPredicateMatcher::isIdentical(B) &&

0 commit comments

Comments
 (0)