[llvm] 4c786c9 - [RISCV] Remove some unused var decl. NFC
Philip Reames via llvm-commits
llvm-commits at lists.llvm.org
Fri Sep 30 08:08:24 PDT 2022
Author: Ray Wang
Date: 2022-09-30T08:08:15-07:00
New Revision: 4c786c9747d48f835aa958bfd16a395a06b469ff
URL: https://github.com/llvm/llvm-project/commit/4c786c9747d48f835aa958bfd16a395a06b469ff
DIFF: https://github.com/llvm/llvm-project/commit/4c786c9747d48f835aa958bfd16a395a06b469ff.diff
LOG: [RISCV] Remove some unused var decl. NFC
Differential Revision: https://reviews.llvm.org/D134707
Added:
Modified:
llvm/lib/Target/RISCV/RISCVISelLowering.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/RISCV/RISCVISelLowering.cpp b/llvm/lib/Target/RISCV/RISCVISelLowering.cpp
index 6b124c8372a48..ba3eb9258edb6 100644
--- a/llvm/lib/Target/RISCV/RISCVISelLowering.cpp
+++ b/llvm/lib/Target/RISCV/RISCVISelLowering.cpp
@@ -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");
More information about the llvm-commits
mailing list