OSDN Git Service

ARM: make -Asserts,-Werror=unused-variable build happy
authorSaleem Abdulrasool <compnerd@compnerd.org>
Fri, 25 Sep 2015 05:41:02 +0000 (05:41 +0000)
committerSaleem Abdulrasool <compnerd@compnerd.org>
Fri, 25 Sep 2015 05:41:02 +0000 (05:41 +0000)
The value was only used in an assertion.  Sink the variable usage into the
assertion.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@248562 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/ARM/ARMISelLowering.cpp

index daf8992..213bd2e 100644 (file)
@@ -6688,8 +6688,8 @@ SDValue ARMTargetLowering::LowerWindowsDIVLibCall(SDValue Op, SelectionDAG &DAG,
 
 SDValue ARMTargetLowering::LowerDIV_Windows(SDValue Op, SelectionDAG &DAG,
                                             bool Signed) const {
-  EVT VT = Op.getValueType();
-  assert(VT == MVT::i32 && "unexpected type for custom lowering DIV");
+  assert(Op.getValueType() == MVT::i32 &&
+         "unexpected type for custom lowering DIV");
   SDLoc dl(Op);
 
   SDValue DBZCHK = DAG.getNode(ARMISD::WIN__DBZCHK, dl, MVT::Other,
@@ -6704,8 +6704,8 @@ void ARMTargetLowering::ExpandDIV_Windows(
   const auto &DL = DAG.getDataLayout();
   const auto &TLI = DAG.getTargetLoweringInfo();
 
-  EVT VT = Op.getValueType();
-  assert(VT == MVT::i64 && "unexpected type for custom lowering DIV");
+  assert(Op.getValueType() == MVT::i64 &&
+         "unexpected type for custom lowering DIV");
   SDLoc dl(Op);
 
   SDValue Lo = DAG.getNode(ISD::EXTRACT_ELEMENT, dl, MVT::i32, Op.getOperand(1),