Ensure that we assert if given an unhandled value.

llvm-svn: 64004
This commit is contained in:
Mike Stump 2009-02-07 03:46:08 +00:00
parent f009a51794
commit 1f36fb1de0
1 changed files with 1 additions and 0 deletions

View File

@ -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;