[llvm] da0d46b - [Hexagon] Fix unused variable warning in Release builds. NFC
Benjamin Kramer via llvm-commits
llvm-commits at lists.llvm.org
Tue Nov 29 15:01:20 PST 2022
Author: Benjamin Kramer
Date: 2022-11-30T00:00:43+01:00
New Revision: da0d46b2baf0eccb8ab3e22d3e9c92768a7fed5c
URL: https://github.com/llvm/llvm-project/commit/da0d46b2baf0eccb8ab3e22d3e9c92768a7fed5c
DIFF: https://github.com/llvm/llvm-project/commit/da0d46b2baf0eccb8ab3e22d3e9c92768a7fed5c.diff
LOG: [Hexagon] Fix unused variable warning in Release builds. NFC
Added:
Modified:
llvm/lib/Target/Hexagon/HexagonISelDAGToDAGHVX.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/Hexagon/HexagonISelDAGToDAGHVX.cpp b/llvm/lib/Target/Hexagon/HexagonISelDAGToDAGHVX.cpp
index ccfc2f3be4e85..b529fae64cc14 100644
--- a/llvm/lib/Target/Hexagon/HexagonISelDAGToDAGHVX.cpp
+++ b/llvm/lib/Target/Hexagon/HexagonISelDAGToDAGHVX.cpp
@@ -2793,8 +2793,7 @@ void HexagonDAGToDAGISel::ppHvxShuffleOfShuffle(std::vector<SDNode *> &&Nodes) {
// The source must be a pair. This should be guaranteed here,
// but check just in case.
- EVT SrcTy = V0A->Src.getValueType();
- assert(SrcTy.getSizeInBits() == 16 * HwLen);
+ assert(V0A->Src.getValueType().getSizeInBits() == 16 * HwLen);
MapType OpMap = {
{V0.getOperand(0), V0A->HalfIdx * HwLen},
More information about the llvm-commits
mailing list