Add parentheses to disambiguate the precedence of these operations and

silence -Wparentheses.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143534 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chandler Carruth 2011-11-02 05:43:44 +00:00
parent 1bfc9f8ff2
commit 94dffd2bb0

View File

@ -1588,8 +1588,8 @@ LinearFunctionTestReplace(Loop *L,
assert(SE->isLoopInvariant(IVLimit, L) &&
"Computed iteration count is not loop invariant!");
assert( EnableIVRewrite || !IVLimit->getType()->isPointerTy() &&
"Should not expand pointer types" );
assert((EnableIVRewrite || !IVLimit->getType()->isPointerTy()) &&
"Should not expand pointer types" );
Value *ExitCnt = Rewriter.expandCodeFor(IVLimit, CmpTy, BI);
// Create a gep for IVInit + IVLimit from on an existing pointer base.