InstCombine: Silence a parenthesis warning
authorDavid Majnemer <david.majnemer@gmail.com>
Sat, 22 Nov 2014 06:09:28 +0000 (06:09 +0000)
committerDavid Majnemer <david.majnemer@gmail.com>
Sat, 22 Nov 2014 06:09:28 +0000 (06:09 +0000)
llvm-svn: 222609

llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp

index 6127eaa..f59e375 100644 (file)
@@ -2550,7 +2550,7 @@ static bool isChainSelectCmpBranch(const SelectInst *SI) {
 bool InstCombiner::replacedSelectWithOperand(SelectInst *SI,
                                              const ICmpInst *Icmp,
                                              const unsigned SIOpd) {
-  assert(SIOpd == 1 || SIOpd == 2 && "Invalid select operand!\n");
+  assert((SIOpd == 1 || SIOpd == 2) && "Invalid select operand!");
   if (isChainSelectCmpBranch(SI) && Icmp->getPredicate() == ICmpInst::ICMP_EQ) {
     BasicBlock *Succ = SI->getParent()->getTerminator()->getSuccessor(1);
     // The check for the unique predecessor is not the best that can be