[llvm-commits] [llvm] r57288 - /llvm/trunk/lib/Transforms/Scalar/InstructionCombining.cpp

Chris Lattner sabre at nondot.org
Tue Oct 7 23:42:28 PDT 2008


Author: lattner
Date: Wed Oct  8 01:42:28 2008
New Revision: 57288

URL: http://llvm.org/viewvc/llvm-project?rev=57288&view=rev
Log:
Add parentheses to avoid warnings in GCC 4.4.0,
patch by Samuel Tardieu!


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

Modified: llvm/trunk/lib/Transforms/Scalar/InstructionCombining.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Scalar/InstructionCombining.cpp?rev=57288&r1=57287&r2=57288&view=diff

==============================================================================
--- llvm/trunk/lib/Transforms/Scalar/InstructionCombining.cpp (original)
+++ llvm/trunk/lib/Transforms/Scalar/InstructionCombining.cpp Wed Oct  8 01:42:28 2008
@@ -3939,7 +3939,7 @@
         // X >>u 2 -> collect(X, -2)
         OverallLeftShift -= ByteShift;
         ByteMask <<= ByteShift;
-        ByteMask &= (~0U >> 32-ByteValues.size());
+        ByteMask &= (~0U >> (32-ByteValues.size()));
       }
 
       if (OverallLeftShift >= (int)ByteValues.size()) return true;





More information about the llvm-commits mailing list