summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2011-11-02 05:43:44 +0000
committerChandler Carruth <chandlerc@gmail.com>2011-11-02 05:43:44 +0000
commit9dba8af07444a6b556e5edab93ef869da1c10984 (patch)
tree90c5ed999c696d3db6a0361c16bb71ff125a5372 /llvm/lib/Transforms
parent126c491319fe74bc2b3e18ce5ac036580cac2ffb (diff)
downloadbcm5719-llvm-9dba8af07444a6b556e5edab93ef869da1c10984.tar.gz
bcm5719-llvm-9dba8af07444a6b556e5edab93ef869da1c10984.zip
Add parentheses to disambiguate the precedence of these operations and
silence -Wparentheses. llvm-svn: 143534
Diffstat (limited to 'llvm/lib/Transforms')
-rw-r--r--llvm/lib/Transforms/Scalar/IndVarSimplify.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Scalar/IndVarSimplify.cpp b/llvm/lib/Transforms/Scalar/IndVarSimplify.cpp
index b2ccb2270ed..0ba327a1eb4 100644
--- a/llvm/lib/Transforms/Scalar/IndVarSimplify.cpp
+++ b/llvm/lib/Transforms/Scalar/IndVarSimplify.cpp
@@ -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.
OpenPOWER on IntegriCloud