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

Mehdi Amini llvmlistbot at llvm.org
Mon Apr 4 11:18:47 PDT 2022


Author: Mehdi Amini
Date: 2022-04-04T18:18:10Z
New Revision: dacb2713c4be144497325f5c2ea288bafbfc3fd9

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

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

Added: 
    

Modified: 
    mlir/lib/Conversion/FuncToLLVM/FuncToLLVM.cpp

Removed: 
    


################################################################################
diff  --git a/mlir/lib/Conversion/FuncToLLVM/FuncToLLVM.cpp b/mlir/lib/Conversion/FuncToLLVM/FuncToLLVM.cpp
index 5119e3681e595..9f11162929572 100644
--- a/mlir/lib/Conversion/FuncToLLVM/FuncToLLVM.cpp
+++ b/mlir/lib/Conversion/FuncToLLVM/FuncToLLVM.cpp
@@ -86,7 +86,7 @@ prependResAttrsToArgAttrs(OpBuilder &builder,
   auto allAttrs = SmallVector<Attribute>(
       numArguments + 1, DictionaryAttr::get(builder.getContext()));
   NamedAttribute *argAttrs = nullptr;
-  for (auto it = attributes.begin(); it != attributes.end();) {
+  for (auto *it = attributes.begin(); it != attributes.end();) {
     if (it->getName() == FunctionOpInterface::getArgDictAttrName()) {
       auto arrayAttrs = it->getValue().cast<ArrayAttr>();
       assert(arrayAttrs.size() == numArguments &&


        


More information about the Mlir-commits mailing list