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);