[llvm-commits] [llvm] r143534 - /llvm/trunk/lib/Transforms/Scalar/IndVarSimplify.cpp

Chandler Carruth chandlerc at gmail.com
Tue Nov 1 22:43:44 PDT 2011


Author: chandlerc
Date: Wed Nov  2 00:43:44 2011
New Revision: 143534

URL: http://llvm.org/viewvc/llvm-project?rev=143534&view=rev
Log:
Add parentheses to disambiguate the precedence of these operations and
silence -Wparentheses.

Modified:
    llvm/trunk/lib/Transforms/Scalar/IndVarSimplify.cpp

Modified: llvm/trunk/lib/Transforms/Scalar/IndVarSimplify.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Scalar/IndVarSimplify.cpp?rev=143534&r1=143533&r2=143534&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Scalar/IndVarSimplify.cpp (original)
+++ llvm/trunk/lib/Transforms/Scalar/IndVarSimplify.cpp Wed Nov  2 00:43:44 2011
@@ -1588,8 +1588,8 @@
 
   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.





More information about the llvm-commits mailing list