[Mlir-commits] [mlir] 2762495 - [MLIR] Apply clang-tidy fixes for performance-move-const-arg in VariantValue.cpp (NFC)

Mehdi Amini llvmlistbot at llvm.org
Thu Aug 28 03:15:46 PDT 2025


Author: Mehdi Amini
Date: 2025-08-28T03:15:07-07:00
New Revision: 2762495156835060f80d694e0011140fb4d23c6b

URL: https://github.com/llvm/llvm-project/commit/2762495156835060f80d694e0011140fb4d23c6b
DIFF: https://github.com/llvm/llvm-project/commit/2762495156835060f80d694e0011140fb4d23c6b.diff

LOG: [MLIR] Apply clang-tidy fixes for performance-move-const-arg in VariantValue.cpp (NFC)

Added: 
    

Modified: 
    mlir/lib/Query/Matcher/VariantValue.cpp

Removed: 
    


################################################################################
diff  --git a/mlir/lib/Query/Matcher/VariantValue.cpp b/mlir/lib/Query/Matcher/VariantValue.cpp
index 02c13638f0cc2..ec18c4895cd6c 100644
--- a/mlir/lib/Query/Matcher/VariantValue.cpp
+++ b/mlir/lib/Query/Matcher/VariantValue.cpp
@@ -66,8 +66,7 @@ VariantMatcher VariantMatcher::SingleMatcher(DynMatcher matcher) {
 VariantMatcher
 VariantMatcher::VariadicOperatorMatcher(DynMatcher::VariadicOperator varOp,
                                         ArrayRef<VariantMatcher> args) {
-  return VariantMatcher(
-      std::make_shared<VariadicOpPayload>(varOp, std::move(args)));
+  return VariantMatcher(std::make_shared<VariadicOpPayload>(varOp, args));
 }
 
 std::optional<DynMatcher> VariantMatcher::MatcherOps::constructVariadicOperator(


        


More information about the Mlir-commits mailing list