summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/BPF
diff options
context:
space:
mode:
authorAlexei Starovoitov <alexei.starovoitov@gmail.com>2017-11-19 02:41:53 +0000
committerAlexei Starovoitov <alexei.starovoitov@gmail.com>2017-11-19 02:41:53 +0000
commit9bd566f8c8d62d9c42c12f83c1a201620a8bb6be (patch)
treebe9918369b095a8a972346e59e08c8782c6a9649 /llvm/lib/Target/BPF
parent9a67245d881f4cf89fd8f897ae2cd0bccec49496 (diff)
downloadbcm5719-llvm-9bd566f8c8d62d9c42c12f83c1a201620a8bb6be.tar.gz
bcm5719-llvm-9bd566f8c8d62d9c42c12f83c1a201620a8bb6be.zip
[bpf] remove unused variable
Signed-off-by: Alexei Starovoitov <ast@kernel.org> llvm-svn: 318615
Diffstat (limited to 'llvm/lib/Target/BPF')
-rw-r--r--llvm/lib/Target/BPF/BPFISelLowering.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/llvm/lib/Target/BPF/BPFISelLowering.cpp b/llvm/lib/Target/BPF/BPFISelLowering.cpp
index f9078fae028..7d535563c75 100644
--- a/llvm/lib/Target/BPF/BPFISelLowering.cpp
+++ b/llvm/lib/Target/BPF/BPFISelLowering.cpp
@@ -329,7 +329,6 @@ SDValue BPFTargetLowering::LowerCall(TargetLowering::CallLoweringInfo &CLI,
// turn it into a TargetGlobalAddress node so that legalize doesn't hack it.
// Likewise ExternalSymbol -> TargetExternalSymbol.
if (GlobalAddressSDNode *G = dyn_cast<GlobalAddressSDNode>(Callee)) {
- auto GV = G->getGlobal();
Callee = DAG.getTargetGlobalAddress(G->getGlobal(), CLI.DL, PtrVT,
G->getOffset(), 0);
} else if (ExternalSymbolSDNode *E = dyn_cast<ExternalSymbolSDNode>(Callee)) {
OpenPOWER on IntegriCloud