From eec19987c04be4c94ffdd27817d4f77e1b7ee0a8 Mon Sep 17 00:00:00 2001 From: Haojian Wu Date: Mon, 19 Sep 2022 20:56:39 +0200 Subject: [PATCH] Fix one more unused warning in release build, NFC --- llvm/lib/Target/Hexagon/HexagonISelLoweringHVX.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/llvm/lib/Target/Hexagon/HexagonISelLoweringHVX.cpp b/llvm/lib/Target/Hexagon/HexagonISelLoweringHVX.cpp index cb1d795..f9e81a2 100755 --- a/llvm/lib/Target/Hexagon/HexagonISelLoweringHVX.cpp +++ b/llvm/lib/Target/Hexagon/HexagonISelLoweringHVX.cpp @@ -2141,9 +2141,9 @@ HexagonTargetLowering::LowerHvxFpToInt(SDValue Op, SelectionDAG &DAG) const { SDValue HexagonTargetLowering::LowerHvxIntToFp(SDValue Op, SelectionDAG &DAG) const { - unsigned Opc = Op.getOpcode(); // Catch invalid conversion ops (just in case). - assert(Opc == ISD::SINT_TO_FP || Opc == ISD::UINT_TO_FP); + assert(Op.getOpcode() == ISD::SINT_TO_FP || + Op.getOpcode() == ISD::UINT_TO_FP); MVT ResTy = ty(Op); MVT IntTy = ty(Op.getOperand(0)).getVectorElementType(); -- 2.7.4