Insert parens to avoid a warning:
authorAlexander Kornienko <alexfh@google.com>
Thu, 7 Aug 2014 12:09:34 +0000 (12:09 +0000)
committerAlexander Kornienko <alexfh@google.com>
Thu, 7 Aug 2014 12:09:34 +0000 (12:09 +0000)
  suggest parentheses around arithmetic in operand of '^' [-Wparentheses]

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@215101 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/X86/X86ISelLowering.cpp

index c62c2fd5f3584a0c0437208f1ba8200b16c8d226..776870c823dfecab0d6e8f423ffc124cf1742500 100644 (file)
@@ -7549,7 +7549,7 @@ static SDValue lowerV8I16SingleInputVectorShuffle(
             if (M == (InputsFixed[0] ^ 1) + SourceOffset)
               M = InputsFixed[1] + SourceOffset;
             else if (M == InputsFixed[1] + SourceOffset)
-              M = InputsFixed[0] ^ 1 + SourceOffset;
+              M = (InputsFixed[0] ^ 1) + SourceOffset;
 
           InputsFixed[1] = InputsFixed[0] ^ 1;
         }