[RISCV] eliminate the repetition declare of SDLoc DL
authorStephenFan <luxufan981014@gmail.com>
Fri, 31 Jul 2020 05:31:48 +0000 (13:31 +0800)
committerStephenFann <luxufan981014@gmail.com>
Mon, 3 Aug 2020 02:24:30 +0000 (10:24 +0800)
Differential revision: https://reviews.llvm.org/D85002

llvm/lib/Target/RISCV/RISCVISelLowering.cpp

index cad5f8e..773a098 100644 (file)
@@ -1003,7 +1003,6 @@ void RISCVTargetLowering::ReplaceNodeResults(SDNode *N,
   case ISD::BITCAST: {
     assert(N->getValueType(0) == MVT::i32 && Subtarget.is64Bit() &&
            Subtarget.hasStdExtF() && "Unexpected custom legalisation");
-    SDLoc DL(N);
     SDValue Op0 = N->getOperand(0);
     if (Op0.getValueType() != MVT::f32)
       return;