Skip to content

Commit d36ed84

Browse files
author
Igor S. Gerasimov
committed
Fix GCC's -Wreturn-type warning
1 parent 8337d01 commit d36ed84

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

lldb/source/DataFormatters/TypeSummary.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,8 @@ std::string TypeSummaryImpl::GetSummaryKindName() {
5858
return "c++";
5959
case Kind::eBytecode:
6060
return "bytecode";
61+
default:
62+
llvm_unreachable("Unknown type kind name");
6163
}
6264
}
6365

lldb/source/ValueObject/DILLexer.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ llvm::StringRef Token::GetTokenName(Kind kind) {
2929
return "l_paren";
3030
case Kind::r_paren:
3131
return "r_paren";
32+
default:
33+
llvm_unreachable("Unknown token name");
3234
}
3335
}
3436

0 commit comments

Comments
 (0)