summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeorge Rimar <grimar@accesssoftek.com>2016-01-25 08:20:16 +0000
committerGeorge Rimar <grimar@accesssoftek.com>2016-01-25 08:20:16 +0000
commit06415e97f21388e3b15c298a412e98328027dd8d (patch)
tree6aa815085d6cbb54053a07fb0a65194b409ac0cb
parent41ed6b7abaeb0ed5371c1fc3930fe4de1c7c6659 (diff)
downloadbcm5719-llvm-06415e97f21388e3b15c298a412e98328027dd8d.tar.gz
bcm5719-llvm-06415e97f21388e3b15c298a412e98328027dd8d.zip
Use of assert instead of llvm_unreachable in EhFrameHeader<ELFT>::assignEhFrame().
llvm-svn: 258670
-rw-r--r--lld/ELF/OutputSections.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lld/ELF/OutputSections.cpp b/lld/ELF/OutputSections.cpp
index 938e63ae544..fd08dfbb0f5 100644
--- a/lld/ELF/OutputSections.cpp
+++ b/lld/ELF/OutputSections.cpp
@@ -862,7 +862,7 @@ template <class ELFT> void EhFrameHeader<ELFT>::writeTo(uint8_t *Buf) {
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;
}
OpenPOWER on IntegriCloud