Apply clang-tidy fixes for llvm-qualified-auto in OpFormatGen.cpp (NFC)
authorMehdi Amini <joker.eph@gmail.com>
Mon, 29 Aug 2022 12:10:15 +0000 (12:10 +0000)
committerMehdi Amini <joker.eph@gmail.com>
Tue, 13 Sep 2022 01:09:14 +0000 (01:09 +0000)
mlir/tools/mlir-tblgen/OpFormatGen.cpp

index 304af57..c8ca809 100644 (file)
@@ -2468,7 +2468,7 @@ LogicalResult
 OpFormatParser::verifyAttributeColonType(SMLoc loc,
                                          ArrayRef<FormatElement *> elements) {
   auto isBase = [](FormatElement *el) {
-    auto attr = dyn_cast<AttributeVariable>(el);
+    auto *attr = dyn_cast<AttributeVariable>(el);
     if (!attr)
       return false;
     // Check only attributes without type builders or that are known to call