From: Michel Weber Date: Fri, 25 Feb 2022 07:32:22 +0000 (+0000) Subject: [MLIR][Presburger] enable copy assignment operator for Simplex X-Git-Tag: upstream/15.0.7~15319 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b3ebcd72262238f105349fc3700ee3612e11ea1e;p=platform%2Fupstream%2Fllvm.git [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 --- diff --git a/mlir/include/mlir/Analysis/Presburger/Simplex.h b/mlir/include/mlir/Analysis/Presburger/Simplex.h index 83f4d39..da1e55a 100644 --- a/mlir/include/mlir/Analysis/Presburger/Simplex.h +++ b/mlir/include/mlir/Analysis/Presburger/Simplex.h @@ -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;