[lld] r234732 - [ARM] Replace branch to unreachable with assertion

Denis Protivensky dprotivensky at accesssoftek.com
Mon Apr 13 01:47:38 PDT 2015


Author: denis-protivensky
Date: Mon Apr 13 03:47:38 2015
New Revision: 234732

URL: http://llvm.org/viewvc/llvm-project?rev=234732&view=rev
Log:
[ARM] Replace branch to unreachable with assertion

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=234732&r1=234731&r2=234732&view=diff
==============================================================================
--- lld/trunk/lib/ReaderWriter/ELF/ARM/ARMRelocationPass.cpp (original)
+++ lld/trunk/lib/ReaderWriter/ELF/ARM/ARMRelocationPass.cpp Mon Apr 13 03:47:38 2015
@@ -868,9 +868,8 @@ public:
   }
 
   std::error_code handleGOT(const Reference &ref) {
-    if (isa<const SharedLibraryAtom>(ref.target())) {
-      llvm_unreachable("Handle shared GOT entries");
-    }
+    assert(!isa<const SharedLibraryAtom>(ref.target()) &&
+           "Shared GOT entries aren't handled yet");
     return ARMRelocationPass::handleGOT(ref);
   }
 };





More information about the llvm-commits mailing list