Apply clang-tidy fixes for performance-for-range-copy in MemRefOps.cpp (NFC)

This commit is contained in:
Mehdi Amini 2022-04-16 07:43:24 +00:00
parent cd149dbf8e
commit 722a3a58e2
1 changed files with 1 additions and 1 deletions

View File

@ -1833,7 +1833,7 @@ computeCollapsedLayoutMap(MemRefType srcType,
// Validate that each reassociation group is contiguous.
unsigned resultStrideIndex = resultStrides.size() - 1;
for (ReassociationIndices reassoc : llvm::reverse(reassociation)) {
for (const ReassociationIndices &reassoc : llvm::reverse(reassociation)) {
auto trailingReassocs = ArrayRef<int64_t>(reassoc).drop_front();
using saturated_arith::Wrapper;
auto stride = Wrapper::stride(resultStrides[resultStrideIndex--]);