aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-10-08 06:42:28 +0000
committerChris Lattner <sabre@nondot.org>2008-10-08 06:42:28 +0000
commit4444859ea448a5ed228b9dded546f6c2bd9e862d (patch)
tree4fa71542cd0a83998d18d03fac09a5a89bc94ca6
parentac454b37897dee8bf528b18e6e42b417a1033ee3 (diff)
downloadexternal_llvm-4444859ea448a5ed228b9dded546f6c2bd9e862d.tar.gz
external_llvm-4444859ea448a5ed228b9dded546f6c2bd9e862d.tar.bz2
external_llvm-4444859ea448a5ed228b9dded546f6c2bd9e862d.zip
Add parentheses to avoid warnings in GCC 4.4.0,
patch by Samuel Tardieu! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57288 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Transforms/Scalar/InstructionCombining.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/Scalar/InstructionCombining.cpp b/lib/Transforms/Scalar/InstructionCombining.cpp
index 6f9893cc8f..8cb5e4fe12 100644
--- a/lib/Transforms/Scalar/InstructionCombining.cpp
+++ b/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;