From 25e7243edaa7859aae21463bca8ac4d6ed0a9aba Mon Sep 17 00:00:00 2001 From: David Blaikie Date: Tue, 17 Mar 2015 17:48:24 +0000 Subject: [PATCH] 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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@232508 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Transforms/Scalar/InductiveRangeCheckElimination.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Transforms/Scalar/InductiveRangeCheckElimination.cpp b/lib/Transforms/Scalar/InductiveRangeCheckElimination.cpp index 81379653d5d..f7095c06269 100644 --- a/lib/Transforms/Scalar/InductiveRangeCheckElimination.cpp +++ b/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(IndexSCEV); bool IsAffineIndex = -- 2.34.1