From ea14c82d0b011e7b0958c359227556bd86063590 Mon Sep 17 00:00:00 2001 From: Galina Kistanova Date: Sat, 10 Jun 2017 07:50:14 +0000 Subject: [PATCH] Added llvm_unreachable as ReportError cannot be specified as noreturn. llvm-svn: 305143 --- lib/DebugInfo/DWARF/DWARFDebugFrame.cpp | 1 + 1 file changed, 1 insertion(+) 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;