From 48d0c2805c03df8fd2dfd3ee4e09733a2585b58b Mon Sep 17 00:00:00 2001 From: Anna Thomas Date: Wed, 3 May 2017 18:25:43 +0000 Subject: [PATCH] Fix PPC64 warning for missing parantheses. NFC. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@302061 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Transforms/Utils/LoopUnrollRuntime.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/Transforms/Utils/LoopUnrollRuntime.cpp b/lib/Transforms/Utils/LoopUnrollRuntime.cpp index 305b87ea287..2c8e6c05178 100644 --- a/lib/Transforms/Utils/LoopUnrollRuntime.cpp +++ b/lib/Transforms/Utils/LoopUnrollRuntime.cpp @@ -516,9 +516,10 @@ bool llvm::UnrollRuntimeLoopRemainder(Loop *L, unsigned Count, // targets of the Latch be the single exit block out of the loop. This needs // to be guaranteed by the callers of UnrollRuntimeLoopRemainder. BranchInst *LatchBR = cast(Latch->getTerminator()); - assert(LatchBR->getSuccessor(0) == Exit || - LatchBR->getSuccessor(1) == Exit && "loop latch successor should be " - "exit block!"); + assert( + (LatchBR->getSuccessor(0) == Exit || LatchBR->getSuccessor(1) == Exit) && + "one of the loop latch successors should be " + "the exit block!"); // Loop structure is the following: // // PreHeader -- 2.50.1