git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@302061
91177308-0d34-0410-b5e6-
96231b3b80d8
// 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