[llvm] r260342 - StructurizeCFG: Initialize SkipUniformRegions in the default constructor

David Blaikie via llvm-commits llvm-commits at lists.llvm.org
Tue Feb 9 17:18:32 PST 2016


perhaps you could use non-static data member in class initializers to
simplify this code? (ie: just initializer the members where they are
declared)

On Tue, Feb 9, 2016 at 5:10 PM, Tom Stellard via llvm-commits <
llvm-commits at lists.llvm.org> wrote:

> Author: tstellar
> Date: Tue Feb  9 19:10:09 2016
> New Revision: 260342
>
> URL: http://llvm.org/viewvc/llvm-project?rev=260342&view=rev
> Log:
> StructurizeCFG: Initialize SkipUniformRegions in the default constructor
>
> This should fix some random bot failures caused by r260336.
>
> Modified:
>     llvm/trunk/lib/Transforms/Scalar/StructurizeCFG.cpp
>
> Modified: llvm/trunk/lib/Transforms/Scalar/StructurizeCFG.cpp
> URL:
> http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Scalar/StructurizeCFG.cpp?rev=260342&r1=260341&r2=260342&view=diff
>
> ==============================================================================
> --- llvm/trunk/lib/Transforms/Scalar/StructurizeCFG.cpp (original)
> +++ llvm/trunk/lib/Transforms/Scalar/StructurizeCFG.cpp Tue Feb  9
> 19:10:09 2016
> @@ -242,7 +242,7 @@ public:
>    static char ID;
>
>    StructurizeCFG() :
> -    RegionPass(ID) {
> +    RegionPass(ID), SkipUniformRegions(false) {
>      initializeStructurizeCFGPass(*PassRegistry::getPassRegistry());
>    }
>
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160209/a021a76d/attachment.html>


More information about the llvm-commits mailing list