diff options
Diffstat (limited to 'llvm/lib/Transforms/Utils/LoopUnrollRuntime.cpp')
-rw-r--r-- | llvm/lib/Transforms/Utils/LoopUnrollRuntime.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/llvm/lib/Transforms/Utils/LoopUnrollRuntime.cpp b/llvm/lib/Transforms/Utils/LoopUnrollRuntime.cpp index 305b87ea287..2c8e6c05178 100644 --- a/llvm/lib/Transforms/Utils/LoopUnrollRuntime.cpp +++ b/llvm/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<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 |