Add parentheses to disambiguate the precedence of these operations and

silence -Wparentheses.

llvm-svn: 143534
This commit is contained in:
Chandler Carruth 2011-11-02 05:43:44 +00:00
parent 126c491319
commit 9dba8af074
1 changed files with 2 additions and 2 deletions

View File

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