[Mlir-commits] [mlir] c2828b6 - Apply clang-tidy fixes for readability-identifier-naming in ArithmeticOps.cpp (NFC)

Mehdi Amini llvmlistbot at llvm.org
Tue Jun 28 10:31:06 PDT 2022


Author: Mehdi Amini
Date: 2022-06-28T17:30:46Z
New Revision: c2828b6363927d1267e2074868e3694c36ae3f50

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

LOG: Apply clang-tidy fixes for readability-identifier-naming in ArithmeticOps.cpp (NFC)

Added: 
    

Modified: 
    mlir/lib/Dialect/Arithmetic/IR/ArithmeticOps.cpp

Removed: 
    


################################################################################
diff  --git a/mlir/lib/Dialect/Arithmetic/IR/ArithmeticOps.cpp b/mlir/lib/Dialect/Arithmetic/IR/ArithmeticOps.cpp
index 8b9175701ff87..672df0c9947e8 100644
--- a/mlir/lib/Dialect/Arithmetic/IR/ArithmeticOps.cpp
+++ b/mlir/lib/Dialect/Arithmetic/IR/ArithmeticOps.cpp
@@ -773,9 +773,9 @@ void arith::DivFOp::getCanonicalizationPatterns(RewritePatternSet &patterns,
 OpFoldResult arith::RemFOp::fold(ArrayRef<Attribute> operands) {
   return constFoldBinaryOp<FloatAttr>(operands,
                                       [](const APFloat &a, const APFloat &b) {
-                                        APFloat Result(a);
-                                        (void)Result.remainder(b);
-                                        return Result;
+                                        APFloat result(a);
+                                        (void)result.remainder(b);
+                                        return result;
                                       });
 }
 


        


More information about the Mlir-commits mailing list