summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2015-03-17 17:48:24 +0000
committerDavid Blaikie <dblaikie@gmail.com>2015-03-17 17:48:24 +0000
commitc4dfa63928a162394cc676bf748f4ba3bdfb34e2 (patch)
tree3e9fa2a991c7fcbe7e8d2451d43fc9e8b50b7858 /llvm/lib/Transforms
parent5121c9aa92b85e4a4713e872ea45c8b2ebde0f9d (diff)
downloadbcm5719-llvm-c4dfa63928a162394cc676bf748f4ba3bdfb34e2.tar.gz
bcm5719-llvm-c4dfa63928a162394cc676bf748f4ba3bdfb34e2.zip
Fix GCC -Wparentheses warning (& reformat now that the precedence is fixed)
Benign warning (clang deliberately suppresses this case) but does regularly produce bad formatting, so it's nice to fix/reformat. llvm-svn: 232508
Diffstat (limited to 'llvm/lib/Transforms')
-rw-r--r--llvm/lib/Transforms/Scalar/InductiveRangeCheckElimination.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Scalar/InductiveRangeCheckElimination.cpp b/llvm/lib/Transforms/Scalar/InductiveRangeCheckElimination.cpp
index 81379653d5d..f7095c06269 100644
--- a/llvm/lib/Transforms/Scalar/InductiveRangeCheckElimination.cpp
+++ b/llvm/lib/Transforms/Scalar/InductiveRangeCheckElimination.cpp
@@ -397,8 +397,8 @@ InductiveRangeCheck::create(InductiveRangeCheck::AllocatorTy &A, BranchInst *BI,
return nullptr;
assert(IndexSCEV && "contract with SplitRangeCheckCondition!");
- assert(!(RCKind & InductiveRangeCheck::RANGE_CHECK_UPPER) ||
- Length && "contract with SplitRangeCheckCondition!");
+ assert((!(RCKind & InductiveRangeCheck::RANGE_CHECK_UPPER) || Length) &&
+ "contract with SplitRangeCheckCondition!");
const SCEVAddRecExpr *IndexAddRec = dyn_cast<SCEVAddRecExpr>(IndexSCEV);
bool IsAffineIndex =
OpenPOWER on IntegriCloud