Skip to content

Commit d7d693c

Browse files
committed
Convert switch to exhaustive.
This is a hypothetical case because LLDB doesn't turn on any remarks in the expression evaluator.
1 parent 8b8337b commit d7d693c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lldb/source/Plugins/TypeSystem/Swift/SwiftASTContext.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2760,18 +2760,19 @@ class StoringDiagnosticConsumer : public swift::DiagnosticConsumer {
27602760
bool use_fixits = false;
27612761
llvm::SourceMgr::DiagKind source_mgr_kind;
27622762
switch (info.Kind) {
2763-
default:
27642763
case swift::DiagnosticKind::Error:
27652764
source_mgr_kind = llvm::SourceMgr::DK_Error;
27662765
use_fixits = true;
27672766
break;
27682767
case swift::DiagnosticKind::Warning:
27692768
source_mgr_kind = llvm::SourceMgr::DK_Warning;
27702769
break;
2771-
27722770
case swift::DiagnosticKind::Note:
27732771
source_mgr_kind = llvm::SourceMgr::DK_Note;
27742772
break;
2773+
case swift::DiagnosticKind::Remark:
2774+
source_mgr_kind = llvm::SourceMgr::DK_Remark;
2775+
break;
27752776
}
27762777

27772778
// Swift may insert note diagnostics after an error diagnostic with fixits

0 commit comments

Comments
 (0)