[llvm-commits] [PATCH] Add parentheses to avoid warnings in GCC 4.4.0
Chris Lattner
clattner at apple.com
Tue Oct 7 23:42:50 PDT 2008
Applied, thanks!
http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20081006/068238.html
On Oct 7, 2008, at 8:30 AM, Samuel Tardieu wrote:
>
> ---
> lib/Transforms/Scalar/InstructionCombining.cpp | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/lib/Transforms/Scalar/InstructionCombining.cpp b/lib/
> Transforms/Scalar/InstructionCombining.cpp
> index 6f9893c..8cb5e4f 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;
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
More information about the llvm-commits
mailing list