summaryrefslogtreecommitdiff
path: root/lib
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
commit94dffd2bb013ef7d2052ef56eac75cdf5d89d43b (patch)
tree19218501d764badde01fbfc20f0f56924d8fd669 /lib
parent1bfc9f8ff2e585854a0c8fa6cc840cdefb9e5124 (diff)
downloadllvm-94dffd2bb013ef7d2052ef56eac75cdf5d89d43b.tar.gz
llvm-94dffd2bb013ef7d2052ef56eac75cdf5d89d43b.tar.bz2
llvm-94dffd2bb013ef7d2052ef56eac75cdf5d89d43b.tar.xz
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
Diffstat (limited to 'lib')
-rw-r--r--lib/Transforms/Scalar/IndVarSimplify.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Transforms/Scalar/IndVarSimplify.cpp b/lib/Transforms/Scalar/IndVarSimplify.cpp
index b2ccb2270e..0ba327a1eb 100644
--- a/lib/Transforms/Scalar/IndVarSimplify.cpp
+++ b/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.