From 1f36fb1de08337100941304e3e43c3fd12476659 Mon Sep 17 00:00:00 2001 From: Mike Stump Date: Sat, 7 Feb 2009 03:46:08 +0000 Subject: [PATCH] Ensure that we assert if given an unhandled value. llvm-svn: 64004 --- clang/lib/Analysis/PathDiagnostic.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/clang/lib/Analysis/PathDiagnostic.cpp b/clang/lib/Analysis/PathDiagnostic.cpp index 347bc922f349..4fa88ed595b4 100644 --- a/clang/lib/Analysis/PathDiagnostic.cpp +++ b/clang/lib/Analysis/PathDiagnostic.cpp @@ -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;