diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Analysis/ScalarEvolution.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Analysis/ScalarEvolution.cpp b/lib/Analysis/ScalarEvolution.cpp index 77defa82e7..622b214aed 100644 --- a/lib/Analysis/ScalarEvolution.cpp +++ b/lib/Analysis/ScalarEvolution.cpp @@ -3601,9 +3601,9 @@ const SCEV *ScalarEvolution::createSCEV(Value *V) { SCEV::NoWrapFlags Flags = SCEV::FlagAnyWrap; OverflowingBinaryOperator *OBO = cast<OverflowingBinaryOperator>(V); if (OBO->hasNoSignedWrap()) - setFlags(Flags, SCEV::FlagNSW); + Flags = setFlags(Flags, SCEV::FlagNSW); if (OBO->hasNoUnsignedWrap()) - setFlags(Flags, SCEV::FlagNUW); + Flags = setFlags(Flags, SCEV::FlagNUW); return getAddExpr(AddOps, Flags); } case Instruction::Mul: { |