forked from OSchip/llvm-project
Apply clang-tidy fixes for performance-for-range-copy in MemRefOps.cpp (NFC)
This commit is contained in:
parent
cd149dbf8e
commit
722a3a58e2
|
@ -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--]);
|
||||
|
|
Loading…
Reference in New Issue