[llvm] r209203 - Add parentheses to suppress the gcc warning '-Wparentheses'.

Simon Atanasyan simon at atanasyan.com
Tue May 20 03:23:05 PDT 2014


Author: atanasyan
Date: Tue May 20 05:23:04 2014
New Revision: 209203

URL: http://llvm.org/viewvc/llvm-project?rev=209203&view=rev
Log:
Add parentheses to suppress the gcc warning '-Wparentheses'.

No functional changes.

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=209203&r1=209202&r2=209203&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86ISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86ISelLowering.cpp Tue May 20 05:23:04 2014
@@ -20294,8 +20294,8 @@ static SDValue PerformINSERTPSCombine(SD
                                       const X86Subtarget *Subtarget) {
   SDLoc dl(N);
   MVT VT = N->getOperand(1)->getSimpleValueType(0);
-  assert(VT == MVT::v4f32 ||
-         VT == MVT::v4i32 && "X86insertps is only defined for v4x32");
+  assert((VT == MVT::v4f32 || VT == MVT::v4i32) &&
+         "X86insertps is only defined for v4x32");
 
   SDValue Ld = N->getOperand(1);
   if (MayFoldLoad(Ld)) {





More information about the llvm-commits mailing list