[Mlir-commits] [mlir] a4070a5 - [mlir][Presburger] Fix warning Wreturn-std-move (NFC)
Adrian Kuegel
llvmlistbot at llvm.org
Wed Jun 29 00:11:04 PDT 2022
Author: Adrian Kuegel
Date: 2022-06-29T09:10:20+02:00
New Revision: a4070a5e77283912eb29e79efd4fb872fdb9ec90
URL: https://github.com/llvm/llvm-project/commit/a4070a5e77283912eb29e79efd4fb872fdb9ec90
DIFF: https://github.com/llvm/llvm-project/commit/a4070a5e77283912eb29e79efd4fb872fdb9ec90.diff
LOG: [mlir][Presburger] Fix warning Wreturn-std-move (NFC)
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 a2e524ea9fd7c..15e186996333e 100644
--- a/mlir/lib/Analysis/Presburger/PresburgerRelation.cpp
+++ b/mlir/lib/Analysis/Presburger/PresburgerRelation.cpp
@@ -13,6 +13,8 @@
#include "llvm/ADT/ScopeExit.h"
#include "llvm/ADT/SmallBitVector.h"
+#include <utility>
+
using namespace mlir;
using namespace presburger;
@@ -144,7 +146,7 @@ PresburgerRelation PresburgerRelation::computeReprWithOnlyDivLocals() const {
PresburgerRelation result(getSpace());
for (const IntegerRelation &disjunct : disjuncts)
result.unionInPlace(disjunct.computeReprWithOnlyDivLocals());
- return result;
+ return std::move(result);
}
/// Return the set
diff erence b \ s.
More information about the Mlir-commits
mailing list