Skip to content

Commit 56c385c

Browse files
committed
Apply clang-tidy fixes for modernize-loop-convert in SparseGPUCodegen.cpp (NFC)
1 parent e546a6e commit 56c385c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mlir/lib/Dialect/SparseTensor/Transforms/SparseGPUCodegen.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,8 @@ static gpu::GPUFuncOp genGPUFunc(OpBuilder &builder, gpu::GPUModuleOp gpuModule,
7777
// Then we insert a new kernel with given arguments into the module.
7878
builder.setInsertionPointToStart(&gpuModule.getBodyRegion().front());
7979
SmallVector<Type> argsTp;
80-
for (unsigned i = 0, e = args.size(); i < e; i++)
81-
argsTp.push_back(args[i].getType());
80+
for (auto arg : args)
81+
argsTp.push_back(arg.getType());
8282
FunctionType type = FunctionType::get(gpuModule->getContext(), argsTp, {});
8383
auto gpuFunc =
8484
builder.create<gpu::GPUFuncOp>(gpuModule->getLoc(), kernelName, type);

0 commit comments

Comments
 (0)