]> granicus.if.org Git - clang/commitdiff
Cleanup switch so it doesn't have a default case.
authorEli Friedman <eli.friedman@gmail.com>
Fri, 18 Dec 2009 23:28:34 +0000 (23:28 +0000)
committerEli Friedman <eli.friedman@gmail.com>
Fri, 18 Dec 2009 23:28:34 +0000 (23:28 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@91725 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CodeGenTypes.cpp

index cd3575c132ce83b3eca05c4e3fae9b8b8e937943..6fa0ea9700eaa0ea03b4b7959fdb8dcda2c1347f 100644 (file)
@@ -199,7 +199,6 @@ const llvm::Type *CodeGenTypes::ConvertNewType(QualType T) {
 
   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 @@ const llvm::Type *CodeGenTypes::ConvertNewType(QualType T) {
     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: