forked from OSchip/llvm-project
Ensure that we assert if given an unhandled value.
llvm-svn: 64004
This commit is contained in:
parent
f009a51794
commit
1f36fb1de0
|
@ -29,6 +29,7 @@ void PathDiagnosticClient::HandleDiagnostic(Diagnostic::Level DiagLevel,
|
|||
|
||||
const char *LevelStr;
|
||||
switch (DiagLevel) {
|
||||
default:
|
||||
case Diagnostic::Ignored: assert(0 && "Invalid diagnostic type");
|
||||
case Diagnostic::Note: LevelStr = "note: "; break;
|
||||
case Diagnostic::Warning: LevelStr = "warning: "; break;
|
||||
|
|
Loading…
Reference in New Issue