OSDN Git Service

Fix PPC64 warning for missing parantheses. NFC.
authorAnna Thomas <anna@azul.com>
Wed, 3 May 2017 18:25:43 +0000 (18:25 +0000)
committerAnna Thomas <anna@azul.com>
Wed, 3 May 2017 18:25:43 +0000 (18:25 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@302061 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Utils/LoopUnrollRuntime.cpp

index 305b87e..2c8e6c0 100644 (file)
@@ -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<BranchInst>(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