diff options
author | Chris Lattner <sabre@nondot.org> | 2008-10-08 06:42:28 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-10-08 06:42:28 +0000 |
commit | 42d5785dbda65ea5a0965446dc2951389c87424d (patch) | |
tree | 6e6a5a2d0b2a89ac3d046bc5d9a7b67cd55ff970 /llvm/lib | |
parent | 6cbe8e99b3b992c5b39220957277f249a34777fc (diff) | |
download | bcm5719-llvm-42d5785dbda65ea5a0965446dc2951389c87424d.tar.gz bcm5719-llvm-42d5785dbda65ea5a0965446dc2951389c87424d.zip |
Add parentheses to avoid warnings in GCC 4.4.0,
patch by Samuel Tardieu!
llvm-svn: 57288
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/Transforms/Scalar/InstructionCombining.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Scalar/InstructionCombining.cpp b/llvm/lib/Transforms/Scalar/InstructionCombining.cpp index 6f9893cc8fa..8cb5e4fe12e 100644 --- a/llvm/lib/Transforms/Scalar/InstructionCombining.cpp +++ b/llvm/lib/Transforms/Scalar/InstructionCombining.cpp @@ -3939,7 +3939,7 @@ static bool CollectBSwapParts(Value *V, int OverallLeftShift, uint32_t ByteMask, // 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; |