From 53f46606806a6c9179a9cbc36387b677e92200dc Mon Sep 17 00:00:00 2001 From: Rui Ueyama Date: Fri, 2 Aug 2013 20:45:25 +0000 Subject: [PATCH] Use report_fatal_error() instead of llvm_unreachable() to show broken input file error. llvm-svn: 187670 --- lld/lib/ReaderWriter/PECOFF/ReaderCOFF.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lld/lib/ReaderWriter/PECOFF/ReaderCOFF.cpp b/lld/lib/ReaderWriter/PECOFF/ReaderCOFF.cpp index 4984f35c2c97..1148c2e757e9 100644 --- a/lld/lib/ReaderWriter/PECOFF/ReaderCOFF.cpp +++ b/lld/lib/ReaderWriter/PECOFF/ReaderCOFF.cpp @@ -320,7 +320,7 @@ private: for (COFFDefinedFileAtom *atom : atoms) if (targetOffset < atom->originalOffset() + atom->size()) return atom; - llvm_unreachable("Relocation target out of range"); + llvm::report_fatal_error("Relocation target out of range"); } /// Find the atom for the symbol that was at the \p index in the symbol