[llvm] r314936 - Fix a -Wparentheses warning. NFC.
Marcello Maggioni via llvm-commits
llvm-commits at lists.llvm.org
Wed Oct 4 14:54:40 PDT 2017
Thanks Hans for fixing this!
Marcello
> On Oct 4, 2017, at 2:14 PM, Hans Wennborg via llvm-commits <llvm-commits at lists.llvm.org> wrote:
>
> Author: hans
> Date: Wed Oct 4 14:14:07 2017
> New Revision: 314936
>
> URL: http://llvm.org/viewvc/llvm-project?rev=314936&view=rev
> Log:
> Fix a -Wparentheses warning. NFC.
>
> Modified:
> llvm/trunk/lib/Transforms/Utils/LoopUtils.cpp
>
> Modified: llvm/trunk/lib/Transforms/Utils/LoopUtils.cpp
> URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Utils/LoopUtils.cpp?rev=314936&r1=314935&r2=314936&view=diff
> ==============================================================================
> --- llvm/trunk/lib/Transforms/Utils/LoopUtils.cpp (original)
> +++ llvm/trunk/lib/Transforms/Utils/LoopUtils.cpp Wed Oct 4 14:14:07 2017
> @@ -1140,7 +1140,7 @@ llvm::collectChildrenInLoop(DomTreeNode
> void llvm::deleteDeadLoop(Loop *L, DominatorTree *DT = nullptr,
> ScalarEvolution *SE = nullptr,
> LoopInfo *LI = nullptr) {
> - assert(!DT || L->isLCSSAForm(*DT) && "Expected LCSSA!");
> + assert((!DT || L->isLCSSAForm(*DT)) && "Expected LCSSA!");
> auto *Preheader = L->getLoopPreheader();
> assert(Preheader && "Preheader should exist!");
>
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits
More information about the llvm-commits
mailing list