From 9a4bf66449f3e9c207a866c73c05c2dcdeb22d97 Mon Sep 17 00:00:00 2001 From: Galina Kistanova Date: Tue, 13 Jun 2017 23:57:51 +0000 Subject: [PATCH] Reverted r305339 as MSVC is not happy with noreturn in lambda. llvm-svn: 305343 --- lib/DebugInfo/DWARF/DWARFDebugFrame.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/DebugInfo/DWARF/DWARFDebugFrame.cpp b/lib/DebugInfo/DWARF/DWARFDebugFrame.cpp index 18467b2e9ae..e6e007896cc 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) LLVM_ATTRIBUTE_NORETURN { + auto ReportError = [StartOffset](const char *ErrorMsg) { std::string Str; raw_string_ostream OS(Str); OS << format(ErrorMsg, StartOffset); @@ -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;