[Mlir-commits] [mlir] b3ebcd7 - [MLIR][Presburger] enable copy assignment operator for Simplex

Arjun P llvmlistbot at llvm.org
Thu Feb 24 23:34:11 PST 2022


Author: Michel Weber
Date: 2022-02-25T07:34:05Z
New Revision: b3ebcd72262238f105349fc3700ee3612e11ea1e

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

LOG: [MLIR][Presburger] enable copy assignment operator for Simplex

This patch removes the `const` from `usingBigM` to enable the implicit copy assignment operator for Simplex.

Reviewed By: Groverkss

Differential Revision: https://reviews.llvm.org/D120542

Added: 
    

Modified: 
    mlir/include/mlir/Analysis/Presburger/Simplex.h

Removed: 
    


################################################################################
diff  --git a/mlir/include/mlir/Analysis/Presburger/Simplex.h b/mlir/include/mlir/Analysis/Presburger/Simplex.h
index 83f4d398b67c9..da1e55a7b12ad 100644
--- a/mlir/include/mlir/Analysis/Presburger/Simplex.h
+++ b/mlir/include/mlir/Analysis/Presburger/Simplex.h
@@ -308,7 +308,7 @@ class SimplexBase {
   unsigned getNumFixedCols() const { return usingBigM ? 3u : 2u; }
 
   /// Stores whether or not a big M column is present in the tableau.
-  const bool usingBigM;
+  bool usingBigM;
 
   /// The number of rows in the tableau.
   unsigned nRow;


        


More information about the Mlir-commits mailing list