[lld] r258670 - Use of assert instead of llvm_unreachable in EhFrameHeader<ELFT>::assignEhFrame().

George Rimar via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 25 00:20:17 PST 2016


Author: grimar
Date: Mon Jan 25 02:20:16 2016
New Revision: 258670

URL: http://llvm.org/viewvc/llvm-project?rev=258670&view=rev
Log:
Use of assert instead of llvm_unreachable in EhFrameHeader<ELFT>::assignEhFrame().

Modified:
    lld/trunk/ELF/OutputSections.cpp

Modified: lld/trunk/ELF/OutputSections.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/OutputSections.cpp?rev=258670&r1=258669&r2=258670&view=diff
==============================================================================
--- lld/trunk/ELF/OutputSections.cpp (original)
+++ lld/trunk/ELF/OutputSections.cpp Mon Jan 25 02:20:16 2016
@@ -862,7 +862,7 @@ template <class ELFT> void EhFrameHeader
 template <class ELFT>
 void EhFrameHeader<ELFT>::assignEhFrame(EHOutputSection<ELFT> *Sec) {
   if (this->Sec && this->Sec != Sec)
-    llvm_unreachable("multiple .eh_frame sections not supported for .eh_frame_hdr");
+    assert("multiple .eh_frame sections not supported for .eh_frame_hdr");
   Live = Config->EhFrameHdr;
   this->Sec = Sec;
 }




More information about the llvm-commits mailing list