[llvm] 358593b - [TableGen] Use std::move. NFC

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 1 21:47:57 PDT 2024


Author: Craig Topper
Date: 2024-08-01T21:42:44-07:00
New Revision: 358593ba87a18a8e85dafc0683c5e7af94009135

URL: https://github.com/llvm/llvm-project/commit/358593ba87a18a8e85dafc0683c5e7af94009135
DIFF: https://github.com/llvm/llvm-project/commit/358593ba87a18a8e85dafc0683c5e7af94009135.diff

LOG: [TableGen] Use std::move. NFC

Fixes #101408.

Added: 
    

Modified: 
    llvm/utils/TableGen/Common/CodeGenRegisters.h

Removed: 
    


################################################################################
diff  --git a/llvm/utils/TableGen/Common/CodeGenRegisters.h b/llvm/utils/TableGen/Common/CodeGenRegisters.h
index 9058baea2b23e..b9b7d9c9ea1f5 100644
--- a/llvm/utils/TableGen/Common/CodeGenRegisters.h
+++ b/llvm/utils/TableGen/Common/CodeGenRegisters.h
@@ -568,7 +568,7 @@ struct RegUnitSet {
   unsigned Weight = 0; // Cache the sum of all unit weights.
   unsigned Order = 0;  // Cache the sort key.
 
-  RegUnitSet(std::string Name) : Name(Name) {}
+  RegUnitSet(std::string Name) : Name(std::move(Name)) {}
 };
 
 // Base vector for identifying TopoSigs. The contents uniquely identify a


        


More information about the llvm-commits mailing list