From: Galina Kistanova Date: Tue, 27 Jun 2017 06:58:57 +0000 (+0000) Subject: Fixed the warning introduced by r306289 to make ubuntu-gcc7.1-werror bot green. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=025f924a12a13453d3efed7c70ef95b2416e5469;p=llvm Fixed the warning introduced by r306289 to make ubuntu-gcc7.1-werror bot green. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@306369 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/X86/X86ISelLowering.cpp b/lib/Target/X86/X86ISelLowering.cpp index f777e562898..9f6479712bd 100644 --- a/lib/Target/X86/X86ISelLowering.cpp +++ b/lib/Target/X86/X86ISelLowering.cpp @@ -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