forked from OSchip/llvm-project
Use of assert instead of llvm_unreachable in EhFrameHeader<ELFT>::assignEhFrame().
llvm-svn: 258670
This commit is contained in:
parent
41ed6b7aba
commit
06415e97f2
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue