Apply clang-tidy fixes for readability-identifier-naming in TestDialect.cpp (NFC)
authorMehdi Amini <joker.eph@gmail.com>
Sat, 10 Dec 2022 14:16:17 +0000 (14:16 +0000)
committerMehdi Amini <joker.eph@gmail.com>
Thu, 29 Dec 2022 20:50:25 +0000 (20:50 +0000)
mlir/test/lib/Dialect/Test/TestDialect.cpp

index 04a01de..49b189f 100644 (file)
@@ -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();
 }