From 7151ad776243f7d4f017cc2d45c69dfc20560320 Mon Sep 17 00:00:00 2001 From: Alexander Kornienko Date: Thu, 7 Aug 2014 12:09:34 +0000 Subject: [PATCH] Insert parens to avoid a warning: suggest parentheses around arithmetic in operand of '^' [-Wparentheses] llvm-svn: 215101 --- llvm/lib/Target/X86/X86ISelLowering.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/lib/Target/X86/X86ISelLowering.cpp b/llvm/lib/Target/X86/X86ISelLowering.cpp index c62c2fd5f358..776870c823df 100644 --- a/llvm/lib/Target/X86/X86ISelLowering.cpp +++ b/llvm/lib/Target/X86/X86ISelLowering.cpp @@ -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; }