From 50bf86ea8a757be4059a56a2c38270873dcf9e2e Mon Sep 17 00:00:00 2001 From: Benjamin Kramer Date: Sun, 30 Oct 2011 08:39:55 +0000 Subject: [PATCH] Silence compiler warning. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143308 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/SelectionDAG/DAGCombiner.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/CodeGen/SelectionDAG/DAGCombiner.cpp b/lib/CodeGen/SelectionDAG/DAGCombiner.cpp index d96ce75a83e..9a637999661 100644 --- a/lib/CodeGen/SelectionDAG/DAGCombiner.cpp +++ b/lib/CodeGen/SelectionDAG/DAGCombiner.cpp @@ -6988,14 +6988,14 @@ SDValue DAGCombiner::visitBUILD_VECTOR(SDNode *N) { DAG.getConstant(0, InScalarTy); unsigned NewBVElems = ElemRatio * N->getValueType(0).getVectorNumElements(); - SmallVector Ops(NewBVElems , Filler); + SmallVector Ops(NewBVElems, Filler); // Populate the new build_vector for (unsigned i=0; i < N->getNumOperands(); ++i) { SDValue Cast = N->getOperand(i); - assert(Cast.getOpcode() == ISD::ANY_EXTEND || - Cast.getOpcode() == ISD::ZERO_EXTEND || - Cast.getOpcode() == ISD::UNDEF && "Invalid cast opcode"); + assert((Cast.getOpcode() == ISD::ANY_EXTEND || + Cast.getOpcode() == ISD::ZERO_EXTEND || + Cast.getOpcode() == ISD::UNDEF) && "Invalid cast opcode"); SDValue In; if (Cast.getOpcode() == ISD::UNDEF) In = DAG.getUNDEF(InScalarTy);