]> granicus.if.org Git - llvm/commitdiff
Fixed the warning introduced by r306289 to make ubuntu-gcc7.1-werror bot green.
authorGalina Kistanova <gkistanova@gmail.com>
Tue, 27 Jun 2017 06:58:57 +0000 (06:58 +0000)
committerGalina Kistanova <gkistanova@gmail.com>
Tue, 27 Jun 2017 06:58:57 +0000 (06:58 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@306369 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/X86/X86ISelLowering.cpp

index f777e56289884b41807c05ac8bd2ef3bd7a47e01..9f6479712bdfd08f382ee37981f81c8de2567276 100644 (file)
@@ -35072,7 +35072,7 @@ static SDValue combineLoopSADPattern(SDNode *N, SelectionDAG &DAG,
 /// that is commonly recognized as an idiom (has no register dependency), so
 /// that's better/smaller than loading a splat 1 constant.
 static SDValue combineIncDecVector(SDNode *N, SelectionDAG &DAG) {
-  assert(N->getOpcode() == ISD::ADD || N->getOpcode() == ISD::SUB &&
+  assert((N->getOpcode() == ISD::ADD || N->getOpcode() == ISD::SUB) &&
          "Unexpected opcode for increment/decrement transform");
 
   // Pseudo-legality check: getOnesVector() expects one of these types, so bail