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)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@222609 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/InstCombine/InstCombineCompares.cpp

index 6127eaaa4dd6ca90c9b1921bc09d43fad9a64004..f59e3758101dd9bf9cb8f9c0e3bdf637edccb245 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