From 4dae7b02be6cb94852131a75b19022aa97ed3667 Mon Sep 17 00:00:00 2001 From: Denis Protivensky Date: Fri, 10 Apr 2015 07:53:18 +0000 Subject: [PATCH] [ARM] Remove unused variable in dynamic pass llvm-svn: 234576 --- lld/lib/ReaderWriter/ELF/ARM/ARMRelocationPass.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lld/lib/ReaderWriter/ELF/ARM/ARMRelocationPass.cpp b/lld/lib/ReaderWriter/ELF/ARM/ARMRelocationPass.cpp index 89c9fe2d96ce..ebc0dd950330 100644 --- a/lld/lib/ReaderWriter/ELF/ARM/ARMRelocationPass.cpp +++ b/lld/lib/ReaderWriter/ELF/ARM/ARMRelocationPass.cpp @@ -746,7 +746,7 @@ public: } std::error_code handleGOT(const Reference &ref) { - if (const auto sla = dyn_cast(ref.target())) { + if (dyn_cast(ref.target())) { llvm_unreachable("Handle shared GOT entries"); } return ARMRelocationPass::handleGOT(ref);