[llvm] r215101 - Insert parens to avoid a warning:
Alexander Kornienko
alexfh at google.com
Thu Aug 7 05:09:34 PDT 2014
Author: alexfh
Date: Thu Aug 7 07:09:34 2014
New Revision: 215101
URL: http://llvm.org/viewvc/llvm-project?rev=215101&view=rev
Log:
Insert parens to avoid a warning:
suggest parentheses around arithmetic in operand of '^' [-Wparentheses]
Modified:
llvm/trunk/lib/Target/X86/X86ISelLowering.cpp
Modified: llvm/trunk/lib/Target/X86/X86ISelLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86ISelLowering.cpp?rev=215101&r1=215100&r2=215101&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86ISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86ISelLowering.cpp Thu Aug 7 07:09:34 2014
@@ -7549,7 +7549,7 @@ static SDValue lowerV8I16SingleInputVect
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;
}
More information about the llvm-commits
mailing list