OSDN Git Service

Set init value for ScalarEvolution::BackedgeTakenInfo::MaxOrZero
authorVictor Leschuk <vleschuk@accesssoftek.com>
Sat, 19 Aug 2017 21:05:08 +0000 (21:05 +0000)
committerVictor Leschuk <vleschuk@accesssoftek.com>
Sat, 19 Aug 2017 21:05:08 +0000 (21:05 +0000)
Otherwise it can be used uninitialized in move ctor.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@311262 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Analysis/ScalarEvolution.h

index b0a2fdf..5d14edf 100644 (file)
@@ -661,7 +661,7 @@ private:
     PointerIntPair<const SCEV *, 1> MaxAndComplete;
 
     /// True iff the backedge is taken either exactly Max or zero times.
-    bool MaxOrZero;
+    bool MaxOrZero = false;
 
     /// \name Helper projection functions on \c MaxAndComplete.
     /// @{