[llvm] e2078d5 - [Hexagon] Fix warning about unused variable when compiling without asserts
Mikael Holmen via llvm-commits
llvm-commits at lists.llvm.org
Tue Jan 4 23:35:36 PST 2022
Author: Mikael Holmen
Date: 2022-01-05T08:35:16+01:00
New Revision: e2078d56ed6f4c187e6d84b4389cb3e2b5c0ea84
URL: https://github.com/llvm/llvm-project/commit/e2078d56ed6f4c187e6d84b4389cb3e2b5c0ea84
DIFF: https://github.com/llvm/llvm-project/commit/e2078d56ed6f4c187e6d84b4389cb3e2b5c0ea84.diff
LOG: [Hexagon] Fix warning about unused variable when compiling without asserts
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 1f2e5dc43439a..0ba75a544c048 100755
--- a/llvm/lib/Target/Hexagon/HexagonISelLoweringHVX.cpp
+++ b/llvm/lib/Target/Hexagon/HexagonISelLoweringHVX.cpp
@@ -2022,8 +2022,7 @@ SDValue HexagonTargetLowering::LowerHvxFpExtend(SDValue Op,
// This conversion only applies to QFloat.
assert(Subtarget.useHVXQFloatOps());
- unsigned Opc = Op->getOpcode();
- assert(Opc == ISD::FP_EXTEND);
+ assert(Op->getOpcode() == ISD::FP_EXTEND);
MVT VecTy = ty(Op);
MVT ArgTy = ty(Op.getOperand(0));
More information about the llvm-commits
mailing list