[Mlir-commits] [mlir] 717c4bf - Apply clang-tidy fixes for misc-unused-parameters in MLIR AffineStructures.cpp (NFC)

Mehdi Amini llvmlistbot at llvm.org
Sun Jan 2 18:34:15 PST 2022


Author: Mehdi Amini
Date: 2022-01-03T02:32:41Z
New Revision: 717c4bf7e364184d70a71b0b5b00615d2b835fd9

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

LOG: Apply clang-tidy fixes for misc-unused-parameters in MLIR AffineStructures.cpp (NFC)

Added: 
    

Modified: 
    mlir/lib/Analysis/AffineStructures.cpp

Removed: 
    


################################################################################
diff  --git a/mlir/lib/Analysis/AffineStructures.cpp b/mlir/lib/Analysis/AffineStructures.cpp
index 3742a24281489..e475808d400c4 100644
--- a/mlir/lib/Analysis/AffineStructures.cpp
+++ b/mlir/lib/Analysis/AffineStructures.cpp
@@ -47,7 +47,7 @@ struct AffineExprFlattener : public SimpleAffineExprFlattener {
   // inequalities.
   FlatAffineConstraints localVarCst;
 
-  AffineExprFlattener(unsigned nDims, unsigned nSymbols, MLIRContext *ctx)
+  AffineExprFlattener(unsigned nDims, unsigned nSymbols)
       : SimpleAffineExprFlattener(nDims, nSymbols) {
     localVarCst.reset(nDims, nSymbols, /*numLocals=*/0);
   }
@@ -81,7 +81,7 @@ getFlattenedAffineExprs(ArrayRef<AffineExpr> exprs, unsigned numDims,
     return success();
   }
 
-  AffineExprFlattener flattener(numDims, numSymbols, exprs[0].getContext());
+  AffineExprFlattener flattener(numDims, numSymbols);
   // Use the same flattener to simplify each expression successively. This way
   // local identifiers / expressions are shared.
   for (auto expr : exprs) {


        


More information about the Mlir-commits mailing list