[RISCV] Remove some unused var decl. NFC
authorRay Wang <i@raywang.cc>
Fri, 30 Sep 2022 15:01:27 +0000 (08:01 -0700)
committerPhilip Reames <listmail@philipreames.com>
Fri, 30 Sep 2022 15:08:15 +0000 (08:08 -0700)
Differential Revision: https://reviews.llvm.org/D134707

llvm/lib/Target/RISCV/RISCVISelLowering.cpp

index 6b124c8..ba3eb92 100644 (file)
@@ -4047,7 +4047,6 @@ SDValue RISCVTargetLowering::getAddr(NodeTy *N, SelectionDAG &DAG,
 
 SDValue RISCVTargetLowering::lowerGlobalAddress(SDValue Op,
                                                 SelectionDAG &DAG) const {
-  SDLoc DL(Op);
   GlobalAddressSDNode *N = cast<GlobalAddressSDNode>(Op);
   assert(N->getOffset() == 0 && "unexpected offset in global node");
   return getAddr(N, DAG, N->getGlobal()->isDSOLocal());
@@ -4154,7 +4153,6 @@ SDValue RISCVTargetLowering::getDynamicTLSAddr(GlobalAddressSDNode *N,
 
 SDValue RISCVTargetLowering::lowerGlobalTLSAddress(SDValue Op,
                                                    SelectionDAG &DAG) const {
-  SDLoc DL(Op);
   GlobalAddressSDNode *N = cast<GlobalAddressSDNode>(Op);
   assert(N->getOffset() == 0 && "unexpected offset in global node");