[llvm] r323233 - [Hexagon] Fix unused variable warning in release build

Krzysztof Parzyszek via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 23 10:16:52 PST 2018


Author: kparzysz
Date: Tue Jan 23 10:16:52 2018
New Revision: 323233

URL: http://llvm.org/viewvc/llvm-project?rev=323233&view=rev
Log:
[Hexagon] Fix unused variable warning in release build

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=323233&r1=323232&r2=323233&view=diff
==============================================================================
--- llvm/trunk/lib/Target/Hexagon/HexagonISelLoweringHVX.cpp (original)
+++ llvm/trunk/lib/Target/Hexagon/HexagonISelLoweringHVX.cpp Tue Jan 23 10:16:52 2018
@@ -759,6 +759,7 @@ HexagonTargetLowering::LowerHvxConcatVec
   unsigned HwLen = Subtarget.getVectorLength();
   unsigned NumOp = Op.getNumOperands();
   assert(isPowerOf2_32(NumOp) && HwLen % NumOp == 0);
+  (void)NumOp;
 
   // Count how many bytes (in a vector register) each bit in VecTy
   // corresponds to.




More information about the llvm-commits mailing list