OSDN Git Service

Appease GCC's -Wparentheses.
authorMatt Beaumont-Gay <matthewbg@google.com>
Tue, 4 Dec 2012 23:54:02 +0000 (23:54 +0000)
committerMatt Beaumont-Gay <matthewbg@google.com>
Tue, 4 Dec 2012 23:54:02 +0000 (23:54 +0000)
(TIL that Clang's -Wparentheses ignores 'x || y && "foo"' on purpose. Neat.)

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

lib/Target/ARM/ARMISelLowering.cpp

index 443ce63..c1b31b3 100644 (file)
@@ -3660,8 +3660,8 @@ static SDValue LowerCTPOP(SDNode *N, SelectionDAG &DAG,
   EVT VT = N->getValueType(0);
 
   assert(ST->hasNEON() && "Custom ctpop lowering requires NEON.");
-  assert((VT == MVT::v2i32 || VT == MVT::v4i32) ||
-         (VT == MVT::v4i16 || VT == MVT::v8i16) &&
+  assert((VT == MVT::v2i32 || VT == MVT::v4i32 ||
+          VT == MVT::v4i16 || VT == MVT::v8i16) &&
          "Unexpected type for custom ctpop lowering");
 
   if (VT.getVectorElementType() == MVT::i32)