[llvm] [NFC] Use `std::move` to avoid copy (PR #134531)

Simon Pilgrim via llvm-commits llvm-commits at lists.llvm.org
Sun Apr 6 05:09:22 PDT 2025


================
@@ -3296,8 +3296,8 @@ namespace ISD {
                                   std::function<bool(ConstantSDNode *)> Match,
                                   bool AllowUndefs = false,
                                   bool AllowTruncation = false) {
-    return matchUnaryPredicateImpl<ConstantSDNode>(Op, Match, AllowUndefs,
-                                                   AllowTruncation);
+    return matchUnaryPredicateImpl<ConstantSDNode>(
+        Op, std::move(Match), AllowUndefs, AllowTruncation);
----------------
RKSimon wrote:

interesting - what warning / linter picked this up?

https://github.com/llvm/llvm-project/pull/134531


More information about the llvm-commits mailing list