[llvm] Fix unused variable build failure in Release build (PR #208195)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 8 04:04:03 PDT 2026
llvmorg-github-actions[bot] wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-backend-hexagon
Author: Chirag Patel (ChiragPatel8)
<details>
<summary>Changes</summary>
Fixes build failure introduced by commit [736771b] (https://github.com/llvm/llvm-project/commit/736771b6a017b5a18c03819a3348ff793c473261) into llvm:main
Ref : https://github.com/llvm/llvm-project/pull/207148
Failure : https://lab.llvm.org/buildbot/#/builders/228/builds/4056
---
Full diff: https://github.com/llvm/llvm-project/pull/208195.diff
1 Files Affected:
- (modified) llvm/lib/Target/Hexagon/HexagonISelLowering.cpp (+2-4)
``````````diff
diff --git a/llvm/lib/Target/Hexagon/HexagonISelLowering.cpp b/llvm/lib/Target/Hexagon/HexagonISelLowering.cpp
index 372eff4857fbd..72c9cbd5a84ae 100644
--- a/llvm/lib/Target/Hexagon/HexagonISelLowering.cpp
+++ b/llvm/lib/Target/Hexagon/HexagonISelLowering.cpp
@@ -1066,8 +1066,7 @@ SDValue HexagonTargetLowering::LowerSETCC(SDValue Op, SelectionDAG &DAG) const {
MVT OpTy = ty(LHS);
if (OpTy == MVT::v2i16 || OpTy == MVT::v4i8) {
- MVT ElemTy = OpTy.getVectorElementType();
- assert(ElemTy.isScalarInteger());
+ assert(OpTy.getVectorElementType().isScalarInteger());
MVT WideTy = OpTy.widenIntegerElementType();
return DAG.getSetCC(dl, ResTy,
DAG.getSExtOrTrunc(LHS, SDLoc(LHS), WideTy),
@@ -1123,8 +1122,7 @@ HexagonTargetLowering::LowerVSELECT(SDValue Op, SelectionDAG &DAG) const {
const SDLoc &dl(Op);
if (OpTy == MVT::v2i16 || OpTy == MVT::v4i8) {
- MVT ElemTy = OpTy.getVectorElementType();
- assert(ElemTy.isScalarInteger());
+ assert(OpTy.getVectorElementType().isScalarInteger());
MVT WideTy = OpTy.widenIntegerElementType();
// Generate (trunc (select (_, sext, sext))).
return DAG.getSExtOrTrunc(
``````````
</details>
https://github.com/llvm/llvm-project/pull/208195
More information about the llvm-commits
mailing list