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

Mehdi Amini llvmlistbot at llvm.org
Sat Oct 21 17:32:49 PDT 2023


Author: Mehdi Amini
Date: 2023-10-21T17:31:37-07:00
New Revision: 5e458f5aefb9b6fa6d2de792f3b3c1f3779564af

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

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

Added: 
    

Modified: 
    mlir/lib/Bytecode/Writer/IRNumbering.cpp

Removed: 
    


################################################################################
diff  --git a/mlir/lib/Bytecode/Writer/IRNumbering.cpp b/mlir/lib/Bytecode/Writer/IRNumbering.cpp
index 67f929059e47092..74c45723c222d27 100644
--- a/mlir/lib/Bytecode/Writer/IRNumbering.cpp
+++ b/mlir/lib/Bytecode/Writer/IRNumbering.cpp
@@ -557,7 +557,7 @@ struct NumberingResourceBuilder : public AsmResourceBuilder {
   void numberEntry(StringRef key) {
     // TODO: We could pre-number resource key strings here as well.
 
-    auto it = dialect->resourceMap.find(key);
+    auto *it = dialect->resourceMap.find(key);
     if (it != dialect->resourceMap.end()) {
       it->second->number = nextResourceID++;
       it->second->isDeclaration = false;


        


More information about the Mlir-commits mailing list