From da1e54d431cd45c50327fad456b24b0cb28e8a20 Mon Sep 17 00:00:00 2001 From: Galina Kistanova Date: Tue, 13 Jun 2017 23:39:42 +0000 Subject: [PATCH] Specified LLVM_ATTRIBUTE_NORETURN for ReportError. llvm-svn: 305339 --- lib/DebugInfo/DWARF/DWARFDebugFrame.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/DebugInfo/DWARF/DWARFDebugFrame.cpp b/lib/DebugInfo/DWARF/DWARFDebugFrame.cpp index e6e007896cc..18467b2e9ae 100644 --- a/lib/DebugInfo/DWARF/DWARFDebugFrame.cpp +++ b/lib/DebugInfo/DWARF/DWARFDebugFrame.cpp @@ -521,7 +521,7 @@ void DWARFDebugFrame::parse(DataExtractor Data) { while (Data.isValidOffset(Offset)) { uint32_t StartOffset = Offset; - auto ReportError = [StartOffset](const char *ErrorMsg) { + auto ReportError = [StartOffset](const char *ErrorMsg) LLVM_ATTRIBUTE_NORETURN { std::string Str; raw_string_ostream OS(Str); OS << format(ErrorMsg, StartOffset); @@ -585,7 +585,6 @@ void DWARFDebugFrame::parse(DataExtractor Data) { switch (AugmentationString[i]) { default: ReportError("Unknown augmentation character in entry at %lx"); - llvm_unreachable("ReportError should not return."); case 'L': LSDAPointerEncoding = Data.getU8(&Offset); break;