[Mlir-commits] [mlir] 72fe439 - [mlir] Fix 1 ClangTidyPerformance finding (NFC)

Adrian Kuegel llvmlistbot at llvm.org
Tue Apr 5 00:29:45 PDT 2022


Author: Adrian Kuegel
Date: 2022-04-05T09:29:35+02:00
New Revision: 72fe439a4e1187fa47dcdcff32f9c397f21ea25a

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

LOG: [mlir] Fix 1 ClangTidyPerformance finding (NFC)

Added: 
    

Modified: 
    mlir/lib/Dialect/LLVMIR/IR/NVVMDialect.cpp

Removed: 
    


################################################################################
diff  --git a/mlir/lib/Dialect/LLVMIR/IR/NVVMDialect.cpp b/mlir/lib/Dialect/LLVMIR/IR/NVVMDialect.cpp
index c2c1eb49e1726..31683b47e5922 100644
--- a/mlir/lib/Dialect/LLVMIR/IR/NVVMDialect.cpp
+++ b/mlir/lib/Dialect/LLVMIR/IR/NVVMDialect.cpp
@@ -291,7 +291,7 @@ ParseResult MmaOp::parse(OpAsmParser &parser, OperationState &result) {
           parser.getNameLoc(),
           "expected one type for each operand segment but got " +
               Twine(operandTypes.size()) + " types");
-  for (auto iter : llvm::enumerate(operandTypes)) {
+  for (const auto& iter : llvm::enumerate(operandTypes)) {
     auto &frag = frags[iter.index()];
     frag.regTypes.resize(frag.regs.size(), iter.value());
     if (failed(parser.resolveOperands(frag.regs, frag.regTypes,


        


More information about the Mlir-commits mailing list