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

Mehdi Amini llvmlistbot at llvm.org
Thu Jan 25 11:33:32 PST 2024


Author: Mehdi Amini
Date: 2024-01-25T11:33:04-08:00
New Revision: b9f73714359a2839b651ee094cad481fb6a636ce

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

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

Added: 
    

Modified: 
    mlir/lib/Dialect/MLProgram/IR/MLProgramOps.cpp

Removed: 
    


################################################################################
diff  --git a/mlir/lib/Dialect/MLProgram/IR/MLProgramOps.cpp b/mlir/lib/Dialect/MLProgram/IR/MLProgramOps.cpp
index 5352b7b0454fd1..37ddca101f64b0 100644
--- a/mlir/lib/Dialect/MLProgram/IR/MLProgramOps.cpp
+++ b/mlir/lib/Dialect/MLProgram/IR/MLProgramOps.cpp
@@ -178,7 +178,7 @@ LogicalResult GlobalOp::verify() {
 //===----------------------------------------------------------------------===//
 
 GlobalOp GlobalLoadOp::getGlobalOp(SymbolTableCollection &symbolTable) {
-  for (auto parent = getOperation()->getParentOp(); parent;
+  for (auto *parent = getOperation()->getParentOp(); parent;
        parent = parent->getParentOp()) {
     if (auto nearest = symbolTable.lookupNearestSymbolFrom<GlobalOp>(
             parent, getGlobalAttr())) {
@@ -259,7 +259,7 @@ GlobalLoadGraphOp::verifySymbolUses(SymbolTableCollection &symbolTable) {
 //===----------------------------------------------------------------------===//
 
 GlobalOp GlobalStoreOp::getGlobalOp(SymbolTableCollection &symbolTable) {
-  for (auto parent = getOperation()->getParentOp(); parent;) {
+  for (auto *parent = getOperation()->getParentOp(); parent;) {
     if (auto nearest = symbolTable.lookupNearestSymbolFrom<GlobalOp>(
             parent, getGlobalAttr())) {
       return nearest;


        


More information about the Mlir-commits mailing list