[llvm] r311262 - Set init value for ScalarEvolution::BackedgeTakenInfo::MaxOrZero
Victor Leschuk via llvm-commits
llvm-commits at lists.llvm.org
Sat Aug 19 14:05:08 PDT 2017
Author: vleschuk
Date: Sat Aug 19 14:05:08 2017
New Revision: 311262
URL: http://llvm.org/viewvc/llvm-project?rev=311262&view=rev
Log:
Set init value for ScalarEvolution::BackedgeTakenInfo::MaxOrZero
Otherwise it can be used uninitialized in move ctor.
Modified:
llvm/trunk/include/llvm/Analysis/ScalarEvolution.h
Modified: llvm/trunk/include/llvm/Analysis/ScalarEvolution.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Analysis/ScalarEvolution.h?rev=311262&r1=311261&r2=311262&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Analysis/ScalarEvolution.h (original)
+++ llvm/trunk/include/llvm/Analysis/ScalarEvolution.h Sat Aug 19 14:05:08 2017
@@ -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.
/// @{
More information about the llvm-commits
mailing list