diff options
author | Mehdi Amini <joker.eph@gmail.com> | 2022-01-08 21:21:42 +0000 |
---|---|---|
committer | Mehdi Amini <joker.eph@gmail.com> | 2022-01-10 01:05:14 +0000 |
commit | 0c9d59e56ad7018fc7f79f4f3de648f0bf227700 (patch) | |
tree | 6c53ccf89cdaf6803d917690486fa38d33aba6be | |
parent | 6a38cbfb53d4480d66b8ac885ad098cb92c8e492 (diff) | |
download | llvm-0c9d59e56ad7018fc7f79f4f3de648f0bf227700.tar.gz |
Apply clang-tidy fixes for performance-for-range-copy in ModuleBufferization.cpp (NFC)
-rw-r--r-- | mlir/lib/Dialect/Linalg/ComprehensiveBufferize/ModuleBufferization.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mlir/lib/Dialect/Linalg/ComprehensiveBufferize/ModuleBufferization.cpp b/mlir/lib/Dialect/Linalg/ComprehensiveBufferize/ModuleBufferization.cpp index 8138ab2952ea..be49608c0bf9 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)) { |