[Hexagon] Suppress warnings on unused variables defind for asserts.

llvm-svn: 319940
This commit is contained in:
Tim Shen 2017-12-06 19:22:19 +00:00
parent 94d788fa78
commit 7654ed03e3
1 changed files with 2 additions and 0 deletions

View File

@ -184,6 +184,7 @@ HexagonTargetLowering::LowerHvxExtractElement(SDValue Op, SelectionDAG &DAG)
MVT ElemTy = ty(VecV).getVectorElementType();
unsigned ElemWidth = ElemTy.getSizeInBits();
assert(ElemWidth >= 8 && ElemWidth <= 32); // TODO i64
(void)ElemWidth;
const SDLoc &dl(Op);
SDValue IdxV = Op.getOperand(1);
@ -215,6 +216,7 @@ HexagonTargetLowering::LowerHvxInsertElement(SDValue Op, SelectionDAG &DAG)
MVT ElemTy = ty(VecV).getVectorElementType();
unsigned ElemWidth = ElemTy.getSizeInBits();
assert(ElemWidth >= 8 && ElemWidth <= 32); // TODO i64
(void)ElemWidth;
auto InsertWord = [&DAG,&dl,this] (SDValue VecV, SDValue ValV,
SDValue ByteIdxV) {