Remove unused MLIRContext member from MutableAffineMap class (NFC)
authorMehdi Amini <aminim@google.com>
Fri, 10 May 2019 06:04:46 +0000 (23:04 -0700)
committerMehdi Amini <joker.eph@gmail.com>
Sat, 11 May 2019 02:27:24 +0000 (19:27 -0700)
    Fix clang warning

--

PiperOrigin-RevId: 247558650

mlir/include/mlir/Analysis/AffineStructures.h
mlir/lib/Analysis/AffineStructures.cpp

index 7dcab23..1cff429 100644 (file)
@@ -104,9 +104,6 @@ private:
 
   SmallVector<AffineExpr, 8> constraints;
   SmallVector<bool, 8> eqFlags;
-  /// A pointer to the IR's context to store all newly created
-  /// AffineExprStorage's.
-  MLIRContext *context;
 };
 
 /// An AffineValueMap is an affine map plus its ML value operands and
index b98b4b8..70d5fcb 100644 (file)
@@ -198,15 +198,14 @@ AffineMap MutableAffineMap::getAffineMap() const {
 }
 
 MutableIntegerSet::MutableIntegerSet(IntegerSet set, MLIRContext *context)
-    : numDims(set.getNumDims()), numSymbols(set.getNumSymbols()),
-      context(context) {
+    : numDims(set.getNumDims()), numSymbols(set.getNumSymbols()) {
   // TODO(bondhugula)
 }
 
 // Universal set.
 MutableIntegerSet::MutableIntegerSet(unsigned numDims, unsigned numSymbols,
                                      MLIRContext *context)
-    : numDims(numDims), numSymbols(numSymbols), context(context) {}
+    : numDims(numDims), numSymbols(numSymbols) {}
 
 //===----------------------------------------------------------------------===//
 // AffineValueMap.