[cfe-commits] r91725 - /cfe/trunk/lib/CodeGen/CodeGenTypes.cpp

Eli Friedman eli.friedman at gmail.com
Fri Dec 18 15:28:34 PST 2009


Author: efriedma
Date: Fri Dec 18 17:28:34 2009
New Revision: 91725

URL: http://llvm.org/viewvc/llvm-project?rev=91725&view=rev
Log:
Cleanup switch so it doesn't have a default case.


Modified:
    cfe/trunk/lib/CodeGen/CodeGenTypes.cpp

Modified: cfe/trunk/lib/CodeGen/CodeGenTypes.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CodeGenTypes.cpp?rev=91725&r1=91724&r2=91725&view=diff

==============================================================================
--- cfe/trunk/lib/CodeGen/CodeGenTypes.cpp (original)
+++ cfe/trunk/lib/CodeGen/CodeGenTypes.cpp Fri Dec 18 17:28:34 2009
@@ -199,7 +199,6 @@
 
   case Type::Builtin: {
     switch (cast<BuiltinType>(Ty).getKind()) {
-    default: assert(0 && "Unknown builtin type!");
     case BuiltinType::Void:
     case BuiltinType::ObjCId:
     case BuiltinType::ObjCClass:
@@ -245,7 +244,14 @@
     case BuiltinType::UInt128:
     case BuiltinType::Int128:
       return llvm::IntegerType::get(getLLVMContext(), 128);
+    
+    case BuiltinType::Overload:
+    case BuiltinType::Dependent:
+    case BuiltinType::UndeducedAuto:
+      assert(0 && "Unexpected builtin type!");
+      break;
     }
+    assert(0 && "Unknown builtin type!");
     break;
   }
   case Type::FixedWidthInt:





More information about the cfe-commits mailing list