Skip to content

Commit 50fcf1e

Browse files
nikicakiramenai
authored andcommitted
[SCEV] Fix warning (NFC)
Produces -Wrange-loop-construct on some buildbots.
1 parent c32484d commit 50fcf1e

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
@@ -11992,7 +11992,7 @@ ScalarEvolution::computeConstantDifference(const SCEV *More, const SCEV *Less) {
1199211992
Decompose(Less, -1);
1199311993

1199411994
// Check whether all the non-constants cancel out.
11995-
for (const auto [_, Mul] : Multiplicity)
11995+
for (const auto &[_, Mul] : Multiplicity)
1199611996
if (Mul != 0)
1199711997
return std::nullopt;
1199811998

0 commit comments

Comments
 (0)