[Mlir-commits] [mlir] 4d3ba7a - Apply clang-tidy fixes for performance-move-const-arg in Utils.cpp (NFC)

Mehdi Amini llvmlistbot at llvm.org
Tue Jan 3 01:46:31 PST 2023


Author: Mehdi Amini
Date: 2023-01-03T09:45:39Z
New Revision: 4d3ba7a0b24b3d41adecdc01f144b708efda9e58

URL: https://github.com/llvm/llvm-project/commit/4d3ba7a0b24b3d41adecdc01f144b708efda9e58
DIFF: https://github.com/llvm/llvm-project/commit/4d3ba7a0b24b3d41adecdc01f144b708efda9e58.diff

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

Added: 
    

Modified: 
    mlir/lib/Dialect/Transform/Utils/Utils.cpp

Removed: 
    


################################################################################
diff  --git a/mlir/lib/Dialect/Transform/Utils/Utils.cpp b/mlir/lib/Dialect/Transform/Utils/Utils.cpp
index 6740790f4ed36..4af6dfd0a3d0c 100644
--- a/mlir/lib/Dialect/Transform/Utils/Utils.cpp
+++ b/mlir/lib/Dialect/Transform/Utils/Utils.cpp
@@ -36,7 +36,7 @@ ParseResult transform::parsePackedOrDynamicIndexList(
     DenseI64ArrayAttr &integers) {
   OpAsmParser::UnresolvedOperand packedOperand;
   if (parser.parseOptionalOperand(packedOperand).has_value()) {
-    packed.emplace(std::move(packedOperand));
+    packed.emplace(packedOperand);
     integers = parser.getBuilder().getDenseI64ArrayAttr({});
     return success();
   }


        


More information about the Mlir-commits mailing list