[Mlir-commits] [mlir] 0a6e29f - Revert "[mlir][Presburger] Fix warning Wreturn-std-move (NFC)"

Adrian Kuegel llvmlistbot at llvm.org
Wed Jun 29 00:22:57 PDT 2022


Author: Adrian Kuegel
Date: 2022-06-29T09:22:36+02:00
New Revision: 0a6e29f455ff8425dec2b772a57b7d1a8a5ccd41

URL: https://github.com/llvm/llvm-project/commit/0a6e29f455ff8425dec2b772a57b7d1a8a5ccd41
DIFF: https://github.com/llvm/llvm-project/commit/0a6e29f455ff8425dec2b772a57b7d1a8a5ccd41.diff

LOG: Revert "[mlir][Presburger] Fix warning Wreturn-std-move (NFC)"

This reverts commit a4070a5e77283912eb29e79efd4fb872fdb9ec90.
It introduced another warning instead.

Added: 
    

Modified: 
    mlir/lib/Analysis/Presburger/PresburgerRelation.cpp

Removed: 
    


################################################################################
diff  --git a/mlir/lib/Analysis/Presburger/PresburgerRelation.cpp b/mlir/lib/Analysis/Presburger/PresburgerRelation.cpp
index 15e186996333e..a2e524ea9fd7c 100644
--- a/mlir/lib/Analysis/Presburger/PresburgerRelation.cpp
+++ b/mlir/lib/Analysis/Presburger/PresburgerRelation.cpp
@@ -13,8 +13,6 @@
 #include "llvm/ADT/ScopeExit.h"
 #include "llvm/ADT/SmallBitVector.h"
 
-#include <utility>
-
 using namespace mlir;
 using namespace presburger;
 
@@ -146,7 +144,7 @@ PresburgerRelation PresburgerRelation::computeReprWithOnlyDivLocals() const {
   PresburgerRelation result(getSpace());
   for (const IntegerRelation &disjunct : disjuncts)
     result.unionInPlace(disjunct.computeReprWithOnlyDivLocals());
-  return std::move(result);
+  return result;
 }
 
 /// Return the set 
diff erence b \ s.


        


More information about the Mlir-commits mailing list