Skip to content

Commit 6cd5364

Browse files
committedApr 28, 2016
Used llvm_unreached to quite a VC++ compiler warning.
Differential Revision: http://reviews.llvm.org/D19489 llvm-svn: 267931
1 parent 6108658 commit 6cd5364

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed
 

‎lldb/source/Expression/DiagnosticManager.cpp

+4
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@
88
//===----------------------------------------------------------------------===//
99

1010
#include "lldb/Expression/DiagnosticManager.h"
11+
12+
#include "llvm/Support/ErrorHandling.h"
13+
1114
#include "lldb/Core/Log.h"
1215
#include "lldb/Core/StreamString.h"
1316

@@ -45,6 +48,7 @@ StringForSeverity(DiagnosticSeverity severity)
4548
case lldb_private::eDiagnosticSeverityRemark:
4649
return "";
4750
}
51+
llvm_unreachable("switch needs another case for DiagnosticSeverity enum");
4852
}
4953

5054
std::string

0 commit comments

Comments
 (0)
Please sign in to comment.