From: Galina Kistanova Date: Sat, 10 Jun 2017 07:50:14 +0000 (+0000) Subject: Added llvm_unreachable as ReportError cannot be specified as noreturn. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c4d4524f232e0dc2dc81f7fc50ebdff3713b8b72;p=llvm Added llvm_unreachable as ReportError cannot be specified as noreturn. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@305143 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/DebugInfo/DWARF/DWARFDebugFrame.cpp b/lib/DebugInfo/DWARF/DWARFDebugFrame.cpp index 4856ab91a18..e6e007896cc 100644 --- a/lib/DebugInfo/DWARF/DWARFDebugFrame.cpp +++ b/lib/DebugInfo/DWARF/DWARFDebugFrame.cpp @@ -585,6 +585,7 @@ 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;