[Mlir-commits] [mlir] 0c9d59e - Apply clang-tidy fixes for performance-for-range-copy in ModuleBufferization.cpp (NFC)

Mehdi Amini llvmlistbot at llvm.org
Sun Jan 9 17:05:38 PST 2022


Author: Mehdi Amini
Date: 2022-01-10T01:05:14Z
New Revision: 0c9d59e56ad7018fc7f79f4f3de648f0bf227700

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

LOG: Apply clang-tidy fixes for performance-for-range-copy in ModuleBufferization.cpp (NFC)

Added: 
    

Modified: 
    mlir/lib/Dialect/Linalg/ComprehensiveBufferize/ModuleBufferization.cpp

Removed: 
    


################################################################################
diff  --git a/mlir/lib/Dialect/Linalg/ComprehensiveBufferize/ModuleBufferization.cpp b/mlir/lib/Dialect/Linalg/ComprehensiveBufferize/ModuleBufferization.cpp
index 8138ab2952eac..be49608c0bf92 100644
--- a/mlir/lib/Dialect/Linalg/ComprehensiveBufferize/ModuleBufferization.cpp
+++ b/mlir/lib/Dialect/Linalg/ComprehensiveBufferize/ModuleBufferization.cpp
@@ -653,7 +653,7 @@ struct CallOpInterface
 
     // 1. Compute the result types of the new CallOp. Tensor results that are
     // equivalent to a FuncOp bbArg are no longer returned.
-    for (auto it : llvm::enumerate(callOp.getResultTypes())) {
+    for (const auto &it : llvm::enumerate(callOp.getResultTypes())) {
       unsigned returnValIdx = it.index();
       Type returnType = it.value();
       if (!isaTensor(returnType)) {


        


More information about the Mlir-commits mailing list