From a96921afa7024533cf451ef13708082876233eef Mon Sep 17 00:00:00 2001 From: StephenFan Date: Fri, 31 Jul 2020 13:31:48 +0800 Subject: [PATCH] [RISCV] eliminate the repetition declare of SDLoc DL Differential revision: https://reviews.llvm.org/D85002 --- llvm/lib/Target/RISCV/RISCVISelLowering.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/llvm/lib/Target/RISCV/RISCVISelLowering.cpp b/llvm/lib/Target/RISCV/RISCVISelLowering.cpp index cad5f8e21185..773a09869033 100644 --- a/llvm/lib/Target/RISCV/RISCVISelLowering.cpp +++ b/llvm/lib/Target/RISCV/RISCVISelLowering.cpp @@ -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;