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

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


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

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

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

Added: 
    

Modified: 
    mlir/lib/Analysis/CallGraph.cpp

Removed: 
    


################################################################################
diff  --git a/mlir/lib/Analysis/CallGraph.cpp b/mlir/lib/Analysis/CallGraph.cpp
index 614e8e24ff9800e..112922647124d4a 100644
--- a/mlir/lib/Analysis/CallGraph.cpp
+++ b/mlir/lib/Analysis/CallGraph.cpp
@@ -133,7 +133,7 @@ CallGraphNode *CallGraph::getOrAddNode(Region *region,
 /// Lookup a call graph node for the given region, or nullptr if none is
 /// registered.
 CallGraphNode *CallGraph::lookupNode(Region *region) const {
-  auto it = nodes.find(region);
+  const auto *it = nodes.find(region);
   return it == nodes.end() ? nullptr : it->second.get();
 }
 


        


More information about the Mlir-commits mailing list