[lld] r234576 - [ARM] Remove unused variable in dynamic pass

Denis Protivensky dprotivensky at accesssoftek.com
Fri Apr 10 00:53:18 PDT 2015


Author: denis-protivensky
Date: Fri Apr 10 02:53:18 2015
New Revision: 234576

URL: http://llvm.org/viewvc/llvm-project?rev=234576&view=rev
Log:
[ARM] Remove unused variable in dynamic pass

Modified:
    lld/trunk/lib/ReaderWriter/ELF/ARM/ARMRelocationPass.cpp

Modified: lld/trunk/lib/ReaderWriter/ELF/ARM/ARMRelocationPass.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/ReaderWriter/ELF/ARM/ARMRelocationPass.cpp?rev=234576&r1=234575&r2=234576&view=diff
==============================================================================
--- lld/trunk/lib/ReaderWriter/ELF/ARM/ARMRelocationPass.cpp (original)
+++ lld/trunk/lib/ReaderWriter/ELF/ARM/ARMRelocationPass.cpp Fri Apr 10 02:53:18 2015
@@ -746,7 +746,7 @@ public:
   }
 
   std::error_code handleGOT(const Reference &ref) {
-    if (const auto sla = dyn_cast<const SharedLibraryAtom>(ref.target())) {
+    if (dyn_cast<const SharedLibraryAtom>(ref.target())) {
       llvm_unreachable("Handle shared GOT entries");
     }
     return ARMRelocationPass::handleGOT(ref);





More information about the llvm-commits mailing list