[llvm] eec1998 - Fix one more unused warning in release build, NFC
Haojian Wu via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 19 11:57:28 PDT 2022
Author: Haojian Wu
Date: 2022-09-19T20:56:39+02:00
New Revision: eec19987c04be4c94ffdd27817d4f77e1b7ee0a8
URL: https://github.com/llvm/llvm-project/commit/eec19987c04be4c94ffdd27817d4f77e1b7ee0a8
DIFF: https://github.com/llvm/llvm-project/commit/eec19987c04be4c94ffdd27817d4f77e1b7ee0a8.diff
LOG: Fix one more unused warning in release build, NFC
Added:
Modified:
llvm/lib/Target/Hexagon/HexagonISelLoweringHVX.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/Hexagon/HexagonISelLoweringHVX.cpp b/llvm/lib/Target/Hexagon/HexagonISelLoweringHVX.cpp
index cb1d795fbf77..f9e81a266591 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();
More information about the llvm-commits
mailing list