Skip to content
This repository was archived by the owner on Apr 28, 2023. It is now read-only.

Commit 648cbe7

Browse files
committed
promoteToSharedBelow: do not capture an unnecessary variable in a lambda
The captured variable was not used inside the lambda since it was introduced in the prehistory.
1 parent 9bd04d4 commit 648cbe7

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

tc/core/polyhedral/cuda/memory_promotion_heuristic.cc

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -512,9 +512,8 @@ void promoteToSharedBelow(
512512
std::sort(
513513
tensorGroups.second.begin(),
514514
tensorGroups.second.end(),
515-
[refsCount](
516-
const std::unique_ptr<TensorReferenceGroup>& group1,
517-
const std::unique_ptr<TensorReferenceGroup>& group2) {
515+
[](const std::unique_ptr<TensorReferenceGroup>& group1,
516+
const std::unique_ptr<TensorReferenceGroup>& group2) {
518517
return group1->referenceIds().size() > group2->referenceIds().size();
519518
});
520519

0 commit comments

Comments
 (0)