[llvm] r222609 - InstCombine: Silence a parenthesis warning

David Majnemer david.majnemer at gmail.com
Fri Nov 21 22:09:28 PST 2014


Author: majnemer
Date: Sat Nov 22 00:09:28 2014
New Revision: 222609

URL: http://llvm.org/viewvc/llvm-project?rev=222609&view=rev
Log:
InstCombine: Silence a parenthesis warning

Modified:
    llvm/trunk/lib/Transforms/InstCombine/InstCombineCompares.cpp

Modified: llvm/trunk/lib/Transforms/InstCombine/InstCombineCompares.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/InstCombine/InstCombineCompares.cpp?rev=222609&r1=222608&r2=222609&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/InstCombine/InstCombineCompares.cpp (original)
+++ llvm/trunk/lib/Transforms/InstCombine/InstCombineCompares.cpp Sat Nov 22 00:09:28 2014
@@ -2550,7 +2550,7 @@ static bool isChainSelectCmpBranch(const
 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





More information about the llvm-commits mailing list