summaryrefslogtreecommitdiffstats
path: root/llvm/lib/DebugInfo
diff options
context:
space:
mode:
authorGalina Kistanova <gkistanova@gmail.com>2017-06-13 23:57:51 +0000
committerGalina Kistanova <gkistanova@gmail.com>2017-06-13 23:57:51 +0000
commit41def9b72c104408f2711dbfc82b27098c705fa0 (patch)
tree3fb2d0c225f475f03427016a2d7df1ec709d9639 /llvm/lib/DebugInfo
parent8531fa3028c566ce705ff75410a104d6e1f7a8c5 (diff)
downloadbcm5719-llvm-41def9b72c104408f2711dbfc82b27098c705fa0.tar.gz
bcm5719-llvm-41def9b72c104408f2711dbfc82b27098c705fa0.zip
Reverted r305339 as MSVC is not happy with noreturn in lambda.
llvm-svn: 305343
Diffstat (limited to 'llvm/lib/DebugInfo')
-rw-r--r--llvm/lib/DebugInfo/DWARF/DWARFDebugFrame.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/DebugInfo/DWARF/DWARFDebugFrame.cpp b/llvm/lib/DebugInfo/DWARF/DWARFDebugFrame.cpp
index 18467b2e9ae..e6e007896cc 100644
--- a/llvm/lib/DebugInfo/DWARF/DWARFDebugFrame.cpp
+++ b/llvm/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;
OpenPOWER on IntegriCloud