[llvm] r311262 - Set init value for ScalarEvolution::BackedgeTakenInfo::MaxOrZero
Victor Leschuk via llvm-commits
llvm-commits at lists.llvm.org
Sat Aug 19 14:11:59 PDT 2017
gcc 7.1 complained about that:
http://lab.llvm.org:8011/builders/ubuntu-gcc7.1-werror
On 08/20/2017 12:05 AM, Victor Leschuk via llvm-commits wrote:
> 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.
> /// @{
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits
--
Best Regards,
Victor Leschuk | Software Engineer |Access Softek
More information about the llvm-commits
mailing list