[Mlir-commits] [mlir] cdbd9c9 - Apply clang-tidy fixes for llvm-qualified-auto in OpFormatGen.cpp (NFC)

Mehdi Amini llvmlistbot at llvm.org
Fri Apr 15 23:36:32 PDT 2022


Author: Mehdi Amini
Date: 2022-04-16T06:36:11Z
New Revision: cdbd9c9bab11a9a0c46dc02807fb41e53fa09cf4

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

LOG: Apply clang-tidy fixes for llvm-qualified-auto in OpFormatGen.cpp (NFC)

Added: 
    

Modified: 
    mlir/tools/mlir-tblgen/OpFormatGen.cpp

Removed: 
    


################################################################################
diff  --git a/mlir/tools/mlir-tblgen/OpFormatGen.cpp b/mlir/tools/mlir-tblgen/OpFormatGen.cpp
index d6976e0cef0f6..77d40f1dc0f10 100644
--- a/mlir/tools/mlir-tblgen/OpFormatGen.cpp
+++ b/mlir/tools/mlir-tblgen/OpFormatGen.cpp
@@ -212,7 +212,7 @@ class OIListElement : public DirectiveElementBase<DirectiveElement::OIList> {
   AttributeVariable *
   getUnitAttrParsingElement(ArrayRef<FormatElement *> pelement) {
     if (pelement.size() == 1) {
-      auto attrElem = dyn_cast<AttributeVariable>(pelement[0]);
+      auto *attrElem = dyn_cast<AttributeVariable>(pelement[0]);
       if (attrElem && attrElem->isUnitAttr())
         return attrElem;
     }


        


More information about the Mlir-commits mailing list