From 070bc9c1fbc4db06fa3e55fa47682bb8f4f26a6f Mon Sep 17 00:00:00 2001 From: Groverkss Date: Sat, 5 Feb 2022 11:55:09 +0530 Subject: [PATCH] [MLIR][Presburger][NFC] Fix clang-tidy warnings This patch changes variable naming to lowerCamelCase to remove clang-tidy warning in Presburger/Utils.cpp. --- mlir/lib/Analysis/Presburger/Utils.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/mlir/lib/Analysis/Presburger/Utils.cpp b/mlir/lib/Analysis/Presburger/Utils.cpp index 7dc7a26e0b5c..39383f7af27d 100644 --- a/mlir/lib/Analysis/Presburger/Utils.cpp +++ b/mlir/lib/Analysis/Presburger/Utils.cpp @@ -160,14 +160,14 @@ static LogicalResult getDivRepr(const IntegerPolyhedron &cst, unsigned pos, // Extract divisor, the divisor can be negative and hence its sign information // is stored in `signDiv` to reverse the sign of dividend's coefficients. - // Equality must involve the pos-th variable and hence `temp_div` != 0. - int64_t temp_div = cst.atEq(eqInd, pos); - if (temp_div == 0) + // Equality must involve the pos-th variable and hence `tempDiv` != 0. + int64_t tempDiv = cst.atEq(eqInd, pos); + if (tempDiv == 0) return failure(); - int64_t signDiv = temp_div < 0 ? -1 : 1; + int64_t signDiv = tempDiv < 0 ? -1 : 1; // The divisor is always a positive integer. - divisor = temp_div * signDiv; + divisor = tempDiv * signDiv; expr.resize(cst.getNumCols(), 0); for (unsigned i = 0, e = cst.getNumIds(); i < e; ++i)