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

Mehdi Amini llvmlistbot at llvm.org
Thu Dec 29 12:51:43 PST 2022


Author: Mehdi Amini
Date: 2022-12-29T20:50:25Z
New Revision: caaf5177af816599db73437dd79310d2240e9563

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

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

Added: 
    

Modified: 
    mlir/test/lib/Dialect/Test/TestDialect.cpp

Removed: 
    


################################################################################
diff  --git a/mlir/test/lib/Dialect/Test/TestDialect.cpp b/mlir/test/lib/Dialect/Test/TestDialect.cpp
index 04a01dedaa1fe..49b189f5802e5 100644
--- a/mlir/test/lib/Dialect/Test/TestDialect.cpp
+++ b/mlir/test/lib/Dialect/Test/TestDialect.cpp
@@ -1183,8 +1183,8 @@ LogicalResult OpWithShapedTypeInferTypeInterfaceOp::inferReturnTypeComponents(
   auto type = IntegerType::get(context, 17);
 
   Attribute encoding;
-  if (auto ranked_ty = sval.dyn_cast<RankedTensorType>())
-    encoding = ranked_ty.getEncoding();
+  if (auto rankedTy = sval.dyn_cast<RankedTensorType>())
+    encoding = rankedTy.getEncoding();
   inferredReturnShapes.push_back(ShapedTypeComponents({dim}, type, encoding));
   return success();
 }


        


More information about the Mlir-commits mailing list