Skip to content

Commit

Permalink
Apply clang-tidy fixes for performance-unnecessary-copy-initializatio…
Browse files Browse the repository at this point in the history
…n in CodegenUtils.cpp (NFC)
  • Loading branch information
joker-eph committed Oct 12, 2022
1 parent 23fa303 commit add7bf1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mlir/lib/Dialect/SparseTensor/Transforms/CodegenUtils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -471,7 +471,7 @@ void mlir::sparse_tensor::genReshapeDstShape(
unsigned start = 0;
// Expand the i-th dimension in srcShape.
for (unsigned i = 0, size = srcShape.size(); i < size; i++) {
auto map = reassociation[i];
const auto &map = reassociation[i];
auto srcDim = srcShape[i];
// Iterate through dimensions expanded from the i-th dimension.
for (unsigned j = start; j < start + map.size(); j++) {
Expand Down

0 comments on commit add7bf1

Please sign in to comment.