From: Haojian Wu Date: Mon, 19 Sep 2022 18:56:39 +0000 (+0200) Subject: Fix one more unused warning in release build, NFC X-Git-Tag: upstream/17.0.6~33119 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=eec19987c04be4c94ffdd27817d4f77e1b7ee0a8;p=platform%2Fupstream%2Fllvm.git Fix one more unused warning in release build, NFC --- 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();