]> granicus.if.org Git - clang/commitdiff
By popular demand, enumerate all builtin types!
authorDevang Patel <dpatel@apple.com>
Mon, 12 Sep 2011 18:50:21 +0000 (18:50 +0000)
committerDevang Patel <dpatel@apple.com>
Mon, 12 Sep 2011 18:50:21 +0000 (18:50 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@139521 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CGDebugInfo.cpp

index 5770764dfa0379a7b70b44f81b2505450cad387a..25a97e4efc9e10a7dcf8651359e9deec4b86c165 100644 (file)
@@ -289,8 +289,20 @@ llvm::DIType CGDebugInfo::CreateType(const BuiltinType *BT) {
   unsigned Encoding = 0;
   const char *BTName = NULL;
   switch (BT->getKind()) {
-  default:
-    assert(0 && "Unexpected builtin");
+  case BuiltinType::Dependent:
+    assert(0 && "Unexpected builtin type Dependent");
+    return llvm::DIType();
+  case BuiltinType::Overload:
+    assert(0 && "Unexpected builtin type Overload");
+    return llvm::DIType();
+  case BuiltinType::BoundMember:
+    assert(0 && "Unexpected builtin type BoundMember");
+    return llvm::DIType();
+  case BuiltinType::UnknownAny:
+    assert(0 && "Unexpected builtin type UnknownAny");
+    return llvm::DIType();
+  case BuiltinType::NullPtr:
+    assert(0 && "Unexpected builtin type NullPtr");
     return llvm::DIType();
   case BuiltinType::Void:
     return llvm::DIType();