Skip to content

Commit a9eb3fd

Browse files
committed
[SCEV] Fix warning (NFC)
Produces -Wrange-loop-construct on some buildbots.
1 parent b21df4b commit a9eb3fd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Analysis/ScalarEvolution.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11979,7 +11979,7 @@ ScalarEvolution::computeConstantDifference(const SCEV *More, const SCEV *Less) {
1197911979
Decompose(Less, -1);
1198011980

1198111981
// Check whether all the non-constants cancel out.
11982-
for (const auto [_, Mul] : Multiplicity)
11982+
for (const auto &[_, Mul] : Multiplicity)
1198311983
if (Mul != 0)
1198411984
return std::nullopt;
1198511985

0 commit comments

Comments
 (0)