[cfe-commits] r64004 - /cfe/trunk/lib/Analysis/PathDiagnostic.cpp
Mike Stump
mrs at apple.com
Fri Feb 6 19:46:08 PST 2009
Author: mrs
Date: Fri Feb 6 21:46:08 2009
New Revision: 64004
URL: http://llvm.org/viewvc/llvm-project?rev=64004&view=rev
Log:
Ensure that we assert if given an unhandled value.
Modified:
cfe/trunk/lib/Analysis/PathDiagnostic.cpp
Modified: cfe/trunk/lib/Analysis/PathDiagnostic.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Analysis/PathDiagnostic.cpp?rev=64004&r1=64003&r2=64004&view=diff
==============================================================================
--- cfe/trunk/lib/Analysis/PathDiagnostic.cpp (original)
+++ cfe/trunk/lib/Analysis/PathDiagnostic.cpp Fri Feb 6 21:46:08 2009
@@ -29,6 +29,7 @@
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;
More information about the cfe-commits
mailing list