Skip to content

Commit 9cebb28

Browse files
committed
Apply clang-tidy fixes for llvm-qualified-auto in PipelineGlobalOps.cpp (NFC)
1 parent b9f7371 commit 9cebb28

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

mlir/lib/Dialect/MLProgram/Transforms/PipelineGlobalOps.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ class MLProgramPipelineGlobals
3838

3939
// Traverses upwards searchign for the operation mapped by the symbol.
4040
static Operation *getFromSymbol(Operation *baseOp, SymbolRefAttr symbol) {
41-
for (auto op = baseOp; op; op = op->getParentOp()) {
42-
auto lookup = SymbolTable::lookupNearestSymbolFrom(op, symbol);
41+
for (auto *op = baseOp; op; op = op->getParentOp()) {
42+
auto *lookup = SymbolTable::lookupNearestSymbolFrom(op, symbol);
4343
if (lookup)
4444
return lookup;
4545
}
@@ -59,7 +59,7 @@ LogicalResult MLProgramPipelineGlobals::buildGlobalMap(ModuleOp module) {
5959
}
6060

6161
auto symbol = mlir::dyn_cast<SymbolRefAttr>(callable);
62-
auto func = getFromSymbol(op, symbol);
62+
auto *func = getFromSymbol(op, symbol);
6363
callableMap[symbol] = func;
6464
}
6565
return WalkResult::advance();
@@ -201,7 +201,7 @@ void MLProgramPipelineGlobals::ProcessBlock(
201201
}
202202
}
203203

204-
for (auto op : toDelete) {
204+
for (auto *op : toDelete) {
205205
op->erase();
206206
}
207207
}

0 commit comments

Comments
 (0)