[cfe-commits] r120402 - /cfe/trunk/lib/AST/Type.cpp

Douglas Gregor dgregor at apple.com
Mon Nov 29 22:40:00 PST 2010


Author: dgregor
Date: Tue Nov 30 00:40:00 2010
New Revision: 120402

URL: http://llvm.org/viewvc/llvm-project?rev=120402&view=rev
Log:
I hate pointless default statements

Modified:
    cfe/trunk/lib/AST/Type.cpp

Modified: cfe/trunk/lib/AST/Type.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/Type.cpp?rev=120402&r1=120401&r2=120402&view=diff
==============================================================================
--- cfe/trunk/lib/AST/Type.cpp (original)
+++ cfe/trunk/lib/AST/Type.cpp Tue Nov 30 00:40:00 2010
@@ -965,7 +965,6 @@
 
 const char *BuiltinType::getName(const LangOptions &LO) const {
   switch (getKind()) {
-  default: assert(0 && "Invalid builtin type!");
   case Void:              return "void";
   case Bool:              return LO.Bool ? "bool" : "_Bool";
   case Char_S:            return "char";





More information about the cfe-commits mailing list