[llvm] r194472 - [mips][msa] Fix buildbot failures caused by an unused variable when assertions are disabled.

Daniel Sanders daniel.sanders at imgtec.com
Tue Nov 12 03:14:19 PST 2013


Author: dsanders
Date: Tue Nov 12 05:14:18 2013
New Revision: 194472

URL: http://llvm.org/viewvc/llvm-project?rev=194472&view=rev
Log:
[mips][msa] Fix buildbot failures caused by an unused variable when assertions are disabled.

Modified:
    llvm/trunk/lib/Target/Mips/MipsSEISelLowering.cpp

Modified: llvm/trunk/lib/Target/Mips/MipsSEISelLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/Mips/MipsSEISelLowering.cpp?rev=194472&r1=194471&r2=194472&view=diff
==============================================================================
--- llvm/trunk/lib/Target/Mips/MipsSEISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/Mips/MipsSEISelLowering.cpp Tue Nov 12 05:14:18 2013
@@ -1346,14 +1346,13 @@ static SDValue lowerMSABitClear(SDValue
 static SDValue lowerMSABitClearImm(SDValue Op, SelectionDAG &DAG) {
   SDLoc DL(Op);
   EVT ResTy = Op->getValueType(0);
-  unsigned ResTyNumElements = ResTy.getVectorNumElements();
   SDValue SHAmount = Op->getOperand(2);
   EVT ImmTy = SHAmount->getValueType(0);
   SDValue Bit =
       DAG.getNode(ISD::SHL, DL, ImmTy, DAG.getConstant(1, ImmTy), SHAmount);
   SDValue BitMask = DAG.getNOT(DL, Bit, ImmTy);
 
-  assert(ResTyNumElements <= 16);
+  assert(ResTy.getVectorNumElements() <= 16);
 
   BitMask = lowerMSASplatImm(DL, ResTy, BitMask, DAG);
 





More information about the llvm-commits mailing list