@@ -2424,10 +2424,10 @@ ScalarEvolution::getStrengthenedNoWrapFlagsFromBinOp(
24242424// We're trying to construct a SCEV of type `Type' with `Ops' as operands and
24252425// `OldFlags' as can't-wrap behavior. Infer a more aggressive set of
24262426// can't-overflow flags for the operation if possible.
2427- static SCEV::NoWrapFlags
2428- StrengthenNoWrapFlags(ScalarEvolution *SE, SCEVTypes Type,
2429- const ArrayRef<const SCEV *> Ops,
2430- SCEV::NoWrapFlags Flags) {
2427+ static SCEV::NoWrapFlags StrengthenNoWrapFlags(ScalarEvolution *SE,
2428+ SCEVTypes Type,
2429+ ArrayRef<const SCEV *> Ops,
2430+ SCEV::NoWrapFlags Flags) {
24312431 using namespace std::placeholders;
24322432
24332433 using OBO = OverflowingBinaryOperator;
@@ -2540,7 +2540,7 @@ const SCEV *ScalarEvolution::getAddExpr(SmallVectorImpl<const SCEV *> &Ops,
25402540 unsigned Idx = isa<SCEVConstant>(Ops[0]) ? 1 : 0;
25412541
25422542 // Delay expensive flag strengthening until necessary.
2543- auto ComputeFlags = [this, OrigFlags](const ArrayRef<const SCEV *> Ops) {
2543+ auto ComputeFlags = [this, OrigFlags](ArrayRef<const SCEV *> Ops) {
25442544 return StrengthenNoWrapFlags(this, scAddExpr, Ops, OrigFlags);
25452545 };
25462546
@@ -3125,7 +3125,7 @@ const SCEV *ScalarEvolution::getMulExpr(SmallVectorImpl<const SCEV *> &Ops,
31253125 return Folded;
31263126
31273127 // Delay expensive flag strengthening until necessary.
3128- auto ComputeFlags = [this, OrigFlags](const ArrayRef<const SCEV *> Ops) {
3128+ auto ComputeFlags = [this, OrigFlags](ArrayRef<const SCEV *> Ops) {
31293129 return StrengthenNoWrapFlags(this, scMulExpr, Ops, OrigFlags);
31303130 };
31313131
0 commit comments