[llvm] r302061 - Fix PPC64 warning for missing parantheses. NFC.
Anna Thomas via llvm-commits
llvm-commits at lists.llvm.org
Wed May 3 11:25:43 PDT 2017
Author: annat
Date: Wed May 3 13:25:43 2017
New Revision: 302061
URL: http://llvm.org/viewvc/llvm-project?rev=302061&view=rev
Log:
Fix PPC64 warning for missing parantheses. NFC.
Modified:
llvm/trunk/lib/Transforms/Utils/LoopUnrollRuntime.cpp
Modified: llvm/trunk/lib/Transforms/Utils/LoopUnrollRuntime.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Utils/LoopUnrollRuntime.cpp?rev=302061&r1=302060&r2=302061&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Utils/LoopUnrollRuntime.cpp (original)
+++ llvm/trunk/lib/Transforms/Utils/LoopUnrollRuntime.cpp Wed May 3 13:25:43 2017
@@ -516,9 +516,10 @@ bool llvm::UnrollRuntimeLoopRemainder(Lo
// 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
More information about the llvm-commits
mailing list