OSDN Git Service

Add parentheses to disambiguate the precedence of these operations and
authorChandler Carruth <chandlerc@gmail.com>
Wed, 2 Nov 2011 05:43:44 +0000 (05:43 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Wed, 2 Nov 2011 05:43:44 +0000 (05:43 +0000)
silence -Wparentheses.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143534 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Scalar/IndVarSimplify.cpp

index b2ccb22..0ba327a 100644 (file)
@@ -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.