diff options
author | Chandler Carruth <chandlerc@gmail.com> | 2011-11-02 05:43:44 +0000 |
---|---|---|
committer | Chandler Carruth <chandlerc@gmail.com> | 2011-11-02 05:43:44 +0000 |
commit | 94dffd2bb013ef7d2052ef56eac75cdf5d89d43b (patch) | |
tree | 19218501d764badde01fbfc20f0f56924d8fd669 /lib/Transforms/Scalar/IndVarSimplify.cpp | |
parent | 1bfc9f8ff2e585854a0c8fa6cc840cdefb9e5124 (diff) |
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/Transforms/Scalar/IndVarSimplify.cpp')
-rw-r--r-- | lib/Transforms/Scalar/IndVarSimplify.cpp | 4 |
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. |