[llvm] r319944 - [Hexagon] Suppress more warnings on unused variables defined for asserts.
Tim Shen via llvm-commits
llvm-commits at lists.llvm.org
Wed Dec 6 11:33:42 PST 2017
Author: timshen
Date: Wed Dec 6 11:33:42 2017
New Revision: 319944
URL: http://llvm.org/viewvc/llvm-project?rev=319944&view=rev
Log:
[Hexagon] Suppress more warnings on unused variables defined for asserts.
Modified:
llvm/trunk/lib/Target/Hexagon/HexagonISelDAGToDAGHVX.cpp
Modified: llvm/trunk/lib/Target/Hexagon/HexagonISelDAGToDAGHVX.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/Hexagon/HexagonISelDAGToDAGHVX.cpp?rev=319944&r1=319943&r2=319944&view=diff
==============================================================================
--- llvm/trunk/lib/Target/Hexagon/HexagonISelDAGToDAGHVX.cpp (original)
+++ llvm/trunk/lib/Target/Hexagon/HexagonISelDAGToDAGHVX.cpp Wed Dec 6 11:33:42 2017
@@ -1164,6 +1164,7 @@ OpRef HvxSelector::shuffs1(ShuffleMask S
DEBUG_WITH_TYPE("isel", {dbgs() << __func__ << '\n';});
unsigned VecLen = SM.Mask.size();
assert(HwLen == VecLen);
+ (void)VecLen;
assert(all_of(SM.Mask, [this](int M) { return M == -1 || M < int(HwLen); }));
if (isIdentity(SM.Mask))
More information about the llvm-commits
mailing list