From: Saleem Abdulrasool Date: Fri, 25 Sep 2015 05:41:02 +0000 (+0000) Subject: ARM: make -Asserts,-Werror=unused-variable build happy X-Git-Url: http://plrg.eecs.uci.edu/git/?p=oota-llvm.git;a=commitdiff_plain;h=054da58c5398a721d4dab7af63d7de8d7a1e1a1c ARM: make -Asserts,-Werror=unused-variable build happy 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 --- diff --git a/lib/Target/ARM/ARMISelLowering.cpp b/lib/Target/ARM/ARMISelLowering.cpp index daf8992a028..213bd2ecc47 100644 --- a/lib/Target/ARM/ARMISelLowering.cpp +++ b/lib/Target/ARM/ARMISelLowering.cpp @@ -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),