Add parentheses to disambiguate the precedence of these operations and
silence -Wparentheses. llvm-svn: 143534
This commit is contained in:
parent
126c491319
commit
9dba8af074
|
@ -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.
|
||||||
|
|
Loading…
Reference in New Issue