[Mlir-commits] [mlir] 1f97219 - Apply clang-tidy fixes for performance-move-const-arg in Pattern.cpp (NFC)

Mehdi Amini llvmlistbot at llvm.org
Thu Feb 15 16:03:23 PST 2024


Author: Mehdi Amini
Date: 2024-02-15T16:02:40-08:00
New Revision: 1f97219a9099b56c18d2e339db8b4aa7964825fd

URL: https://github.com/llvm/llvm-project/commit/1f97219a9099b56c18d2e339db8b4aa7964825fd
DIFF: https://github.com/llvm/llvm-project/commit/1f97219a9099b56c18d2e339db8b4aa7964825fd.diff

LOG: Apply clang-tidy fixes for performance-move-const-arg in Pattern.cpp (NFC)

Added: 
    

Modified: 
    mlir/lib/TableGen/Pattern.cpp

Removed: 
    


################################################################################
diff  --git a/mlir/lib/TableGen/Pattern.cpp b/mlir/lib/TableGen/Pattern.cpp
index 3526192c9ee850..afb69e7cc55866 100644
--- a/mlir/lib/TableGen/Pattern.cpp
+++ b/mlir/lib/TableGen/Pattern.cpp
@@ -225,7 +225,7 @@ StringRef SymbolInfoMap::getValuePackName(StringRef symbol, int *index) {
 SymbolInfoMap::SymbolInfo::SymbolInfo(
     const Operator *op, SymbolInfo::Kind kind,
     std::optional<DagAndConstant> dagAndConstant)
-    : op(op), kind(kind), dagAndConstant(std::move(dagAndConstant)) {}
+    : op(op), kind(kind), dagAndConstant(dagAndConstant) {}
 
 int SymbolInfoMap::SymbolInfo::getStaticValueCount() const {
   switch (kind) {


        


More information about the Mlir-commits mailing list