Skip to content

Commit 358593b

Browse files
committed
[TableGen] Use std::move. NFC
Fixes #101408.
1 parent 10bad2c commit 358593b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/utils/TableGen/Common/CodeGenRegisters.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -568,7 +568,7 @@ struct RegUnitSet {
568568
unsigned Weight = 0; // Cache the sum of all unit weights.
569569
unsigned Order = 0; // Cache the sort key.
570570

571-
RegUnitSet(std::string Name) : Name(Name) {}
571+
RegUnitSet(std::string Name) : Name(std::move(Name)) {}
572572
};
573573

574574
// Base vector for identifying TopoSigs. The contents uniquely identify a

0 commit comments

Comments
 (0)