summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Utils/LoopUnrollRuntime.cpp
diff options
context:
space:
mode:
authorAnna Thomas <anna@azul.com>2017-05-03 18:25:43 +0000
committerAnna Thomas <anna@azul.com>2017-05-03 18:25:43 +0000
commitd4c0295cc829d9e972bd6c187b604e09e1cc19cf (patch)
tree76dd11628208c02ceb8718785987982ea59107d5 /llvm/lib/Transforms/Utils/LoopUnrollRuntime.cpp
parenta0b45f4bfccb3ab197ca504032c28160ce82eac2 (diff)
downloadbcm5719-llvm-d4c0295cc829d9e972bd6c187b604e09e1cc19cf.tar.gz
bcm5719-llvm-d4c0295cc829d9e972bd6c187b604e09e1cc19cf.zip
Fix PPC64 warning for missing parantheses. NFC.
llvm-svn: 302061
Diffstat (limited to 'llvm/lib/Transforms/Utils/LoopUnrollRuntime.cpp')
-rw-r--r--llvm/lib/Transforms/Utils/LoopUnrollRuntime.cpp7
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
OpenPOWER on IntegriCloud