1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-01-31 12:41:49 +01:00

Reverted r305339 as MSVC is not happy with noreturn in lambda.

llvm-svn: 305343
This commit is contained in:
Galina Kistanova 2017-06-13 23:57:51 +00:00
parent e9e6ba3b15
commit 9a4bf66449

View File

@ -521,7 +521,7 @@ void DWARFDebugFrame::parse(DataExtractor Data) {
while (Data.isValidOffset(Offset)) { while (Data.isValidOffset(Offset)) {
uint32_t StartOffset = Offset; uint32_t StartOffset = Offset;
auto ReportError = [StartOffset](const char *ErrorMsg) LLVM_ATTRIBUTE_NORETURN { auto ReportError = [StartOffset](const char *ErrorMsg) {
std::string Str; std::string Str;
raw_string_ostream OS(Str); raw_string_ostream OS(Str);
OS << format(ErrorMsg, StartOffset); OS << format(ErrorMsg, StartOffset);
@ -585,6 +585,7 @@ void DWARFDebugFrame::parse(DataExtractor Data) {
switch (AugmentationString[i]) { switch (AugmentationString[i]) {
default: default:
ReportError("Unknown augmentation character in entry at %lx"); ReportError("Unknown augmentation character in entry at %lx");
llvm_unreachable("ReportError should not return.");
case 'L': case 'L':
LSDAPointerEncoding = Data.getU8(&Offset); LSDAPointerEncoding = Data.getU8(&Offset);
break; break;