[llvm] r319940 - [Hexagon] Suppress warnings on unused variables defind for asserts.
Tim Shen via llvm-commits
llvm-commits at lists.llvm.org
Wed Dec 6 11:22:19 PST 2017
Author: timshen
Date: Wed Dec 6 11:22:19 2017
New Revision: 319940
URL: http://llvm.org/viewvc/llvm-project?rev=319940&view=rev
Log:
[Hexagon] Suppress warnings on unused variables defind for asserts.
Modified:
llvm/trunk/lib/Target/Hexagon/HexagonISelLoweringHVX.cpp
Modified: llvm/trunk/lib/Target/Hexagon/HexagonISelLoweringHVX.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/Hexagon/HexagonISelLoweringHVX.cpp?rev=319940&r1=319939&r2=319940&view=diff
==============================================================================
--- llvm/trunk/lib/Target/Hexagon/HexagonISelLoweringHVX.cpp (original)
+++ llvm/trunk/lib/Target/Hexagon/HexagonISelLoweringHVX.cpp Wed Dec 6 11:22:19 2017
@@ -184,6 +184,7 @@ HexagonTargetLowering::LowerHvxExtractEl
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::LowerHvxInsertEle
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) {
More information about the llvm-commits
mailing list