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;


_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to