summaryrefslogtreecommitdiff
path: root/lib/Target/Mips
diff options
context:
space:
mode:
authorDaniel Sanders <daniel.sanders@imgtec.com>2013-11-12 11:14:18 +0000
committerDaniel Sanders <daniel.sanders@imgtec.com>2013-11-12 11:14:18 +0000
commit92e94a2ee44aefda151125fdb62bf9d5b54edfb2 (patch)
tree42d280b70b3556f183886c8abef5b1b7009a06a4 /lib/Target/Mips
parentbb47fd04c9b1616c0371eb2c488c5f0f665c25f8 (diff)
downloadllvm-92e94a2ee44aefda151125fdb62bf9d5b54edfb2.tar.gz
llvm-92e94a2ee44aefda151125fdb62bf9d5b54edfb2.tar.bz2
llvm-92e94a2ee44aefda151125fdb62bf9d5b54edfb2.tar.xz
[mips][msa] Fix buildbot failures caused by an unused variable when assertions are disabled.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@194472 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/Mips')
-rw-r--r--lib/Target/Mips/MipsSEISelLowering.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/Target/Mips/MipsSEISelLowering.cpp b/lib/Target/Mips/MipsSEISelLowering.cpp
index 4b2bdcd95e..9585efb272 100644
--- a/lib/Target/Mips/MipsSEISelLowering.cpp
+++ b/lib/Target/Mips/MipsSEISelLowering.cpp
@@ -1346,14 +1346,13 @@ static SDValue lowerMSABitClear(SDValue Op, SelectionDAG &DAG) {
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);