Skip to content

Commit 59d7da7

Browse files
author
Igor S. Gerasimov
committed
Follow LLVM coding standard
1 parent d36ed84 commit 59d7da7

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

lldb/source/DataFormatters/TypeSummary.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +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");
6361
}
62+
llvm_unreachable("Unknown type kind name");
6463
}
6564

6665
StringSummaryFormat::StringSummaryFormat(const TypeSummaryImpl::Flags &flags,

lldb/source/ValueObject/DILLexer.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +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");
3432
}
33+
llvm_unreachable("Unknown token name");
3534
}
3635

3736
static bool IsLetter(char c) {

0 commit comments

Comments
 (0)