[MLIR][Presburger] enable copy assignment operator for Simplex
authorMichel Weber <michel.weber@inf.ethz.ch>
Fri, 25 Feb 2022 07:32:22 +0000 (07:32 +0000)
committerArjun P <arjunpitchanathan@gmail.com>
Fri, 25 Feb 2022 07:34:05 +0000 (07:34 +0000)
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

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

index 83f4d39..da1e55a 100644 (file)
@@ -308,7 +308,7 @@ protected:
   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;