diff --git a/lldb/source/DataFormatters/TypeSummary.cpp b/lldb/source/DataFormatters/TypeSummary.cpp index 2c863b364538..18bf81aedf2c 100644 --- a/lldb/source/DataFormatters/TypeSummary.cpp +++ b/lldb/source/DataFormatters/TypeSummary.cpp @@ -59,6 +59,7 @@ std::string TypeSummaryImpl::GetSummaryKindName() { case Kind::eBytecode: return "bytecode"; } + llvm_unreachable("Unknown type kind name"); } StringSummaryFormat::StringSummaryFormat(const TypeSummaryImpl::Flags &flags, diff --git a/lldb/source/ValueObject/DILLexer.cpp b/lldb/source/ValueObject/DILLexer.cpp index c7acfec347af..1f013288c839 100644 --- a/lldb/source/ValueObject/DILLexer.cpp +++ b/lldb/source/ValueObject/DILLexer.cpp @@ -30,6 +30,7 @@ llvm::StringRef Token::GetTokenName(Kind kind) { case Kind::r_paren: return "r_paren"; } + llvm_unreachable("Unknown token name"); } static bool IsLetter(char c) {